MCPcopy Create free account
hub / github.com/OGRECave/ogre / remove

Method remove

OgreMain/src/OgreFileSystem.cpp:441–453  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

439 }
440 //---------------------------------------------------------------------
441 void FileSystemArchive::remove(const String& filename)
442 {
443 if (isReadOnly())
444 {
445 OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Cannot remove a file from a read-only archive");
446 }
447 String full_path = concatenate_path(mName, filename);
448#ifdef _OGRE_FILESYSTEM_ARCHIVE_UNICODE
449 ::_wremove(to_wpath(full_path).c_str());
450#else
451 ::remove(full_path.c_str());
452#endif
453 }
454 //-----------------------------------------------------------------------
455 StringVectorPtr FileSystemArchive::list(bool recursive, bool dirs) const
456 {

Callers

nothing calls this directly

Calls 3

isReadOnlyFunction · 0.85
concatenate_pathFunction · 0.85
to_wpathFunction · 0.85

Tested by

no test coverage detected