MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / cleanPath

Method cleanPath

Engine/source/core/volume.cpp:190–198  ·  view source on GitHub ↗

Makes sure paths going in and out of the notifier will have the same format

Source from the content-addressed store, hash-verified

188
189/// Makes sure paths going in and out of the notifier will have the same format
190String FileSystemChangeNotifier::cleanPath(const Path& dir)
191{
192 // This "cleans up" the path, if we don't do this we can get mismatches on the path
193 // coming from the notifier
194 FileSystemRef fs = Torque::FS::GetFileSystem(dir);
195 if (!fs)
196 return String::EmptyString;
197 return fs->mapFrom(fs->mapTo(dir));
198}
199
200void FileSystemChangeNotifier::internalNotifyDirChanged( const Path &dir )
201{

Callers

nothing calls this directly

Calls 3

GetFileSystemFunction · 0.85
mapFromMethod · 0.45
mapToMethod · 0.45

Tested by

no test coverage detected