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

Method remove

OgreMain/src/OgreFileSystem.cpp:410–423  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

408 }
409 //---------------------------------------------------------------------
410 void FileSystemArchive::remove( const String &filename )
411 {
412 if( isReadOnly() )
413 {
414 OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS, "Cannot remove a file from a read-only archive",
415 "FileSystemArchive::remove" );
416 }
417 String full_path = concatenate_path( mName, filename );
418#ifdef _OGRE_FILESYSTEM_ARCHIVE_UNICODE
419 ::_wremove( to_wpath( full_path ).c_str() );
420#else
421 ::remove( full_path.c_str() );
422#endif
423 }
424 //-----------------------------------------------------------------------
425 StringVectorPtr FileSystemArchive::list( bool recursive, bool dirs )
426 {

Callers

nothing calls this directly

Calls 4

isReadOnlyFunction · 0.85
concatenate_pathFunction · 0.85
to_wpathFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected