Path FileSystemRedirect::mapTo(const Path& path) { Path p = _merge(path); FileSystemRef fs = mMFS->getFileSystem(p); if (fs != NULL) return fs->mapTo(p); return NULL; }
/// Makes sure paths going in and out of the notifier will have the same format String FileSystemChangeNotifier::cleanPath(const Path& dir) { // This "cleans up" the path, if we don't do this we can get mismatches on the path // coming from the notifier FileSystemRef fs = Torque::FS::GetFileSystem(dir); if (!fs) return String::EmptyString; return fs->mapFrom(fs->mapTo(dir)); }
bool GetFSPath( const Path &inPath, Path &outPath ) { FileSystemRef sys = GetFileSystem( inPath ); if ( sys ) { outPath = sys->mapTo( inPath ); return true; } return false; }