FileNodeRef MountSystem::getFileNode(const Path& path) { Path np = _normalize(path); FileSystemRef fs = _getFileSystemFromList(np); if (fs != NULL) return fs->resolve(np); return NULL; }
FileNodeRef FileSystemRedirect::resolve(const Path& path) { Path p = _merge(path); FileSystemRef fs = mMFS->getFileSystem(p); if (fs != NULL) return fs->resolve(p); return NULL; }
bool MountSystem::isDirectory(const Path& path, FileSystemRef fsRef) { FileNode::Attributes attr; if (fsRef.isNull()) { if (getFileAttributes(path,&attr)) return attr.flags & FileNode::Directory; return false; } else { FileNodeRef fnRef = fsRef->resolve(path); if (fnRef.isNull()) return false; FileNode::Attributes attr; if (fnRef->getAttributes(&attr)) return attr.flags & FileNode::Directory; return false; } }