boolean isDir ( String src ) { byte [ ] [ ] components = INodeDirectory . getPathComponents ( normalizePath ( src ) ) ; readLock ( ) ; try { INode node = rootDir . getNode ( components ) ; return isDir ( node ) ; } finally { readUnlock ( ) ; } }
Check whether the path specifies a directory