Added Don's new osgDB::makeDirectory() code FileUtils.

This commit is contained in:
Robert Osfield
2004-09-01 14:49:18 +00:00
parent 543f4493f6
commit ac6d25a840
2 changed files with 85 additions and 0 deletions

View File

@@ -36,6 +36,12 @@ enum FileType
DIRECTORY,
};
// Make a new directory. Returns true if directory exists or was created.
extern OSGDB_EXPORT bool makeDirectory( const std::string &directoryPath );
// Make a new directory for a given file.
extern OSGDB_EXPORT bool makeDirectoryForFile( const std::string &filePath );
/** return true if a file exisits. */
extern OSGDB_EXPORT bool fileExists(const std::string& filename);