- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# FileUtils.cpp File Reference

`#include <unistd.h>`
`#include <sys/types.h>`
`#include <sys/stat.h>`
`#include <osg/Notify>`
`#include <osgDB/FileUtils>`
`#include <osgDB/FileNameUtils>`
`#include <osgDB/Registry>`
`#include <errno.h>`
`#include <stack>`
`#include <dirent.h>`

Include dependency graph for FileUtils.cpp:

## Defines
#define | S_ISDIR(mode) (mode&__S_IFDIR)
## Functions
bool | osgDB::makeDirectory (const std::string &path)
bool | osgDB::makeDirectoryForFile (const std::string &path)
void | osgDB::convertStringPathIntoFilePathList (const std::string &paths, FilePathList &filepath)
| convert a string containing a list of paths deliminated either with ';' (Windows) or ':' (All other platforms) into FilePath represetation.
bool | osgDB::fileExists (const std::string &filename)
| return true if a file exisits.
osgDB::FileType | osgDB::fileType (const std::string &filename)
| return type of file.
std::string | osgDB::findFileInPath (const std::string &filename, const FilePathList &filepath, CaseSensitivity caseSensitivity)
std::string | osgDB::findDataFile (const std::string &filename, CaseSensitivity caseSensitivity)
OSGDB_EXPORT std::string | osgDB::findDataFile (const std::string &filename, const ReaderWriter::Options *options, CaseSensitivity caseSensitivity)
| Search for specified file in file system, checking first the database path set in the Options structure, then the DataFilePathList for possible paths, returning the full path of the first valid file found, return an empty string if no string is found.
std::string | osgDB::findLibraryFile (const std::string &filename, CaseSensitivity caseSensitivity)
std::string | osgDB::findFileInDirectory (const std::string &fileName, const std::string &dirName, CaseSensitivity caseSensitivity)
osgDB::DirectoryContents | osgDB::getDirectoryContents (const std::string &dirName)
| return the contents of a directory.
void | osgDB::appendPlatformSpecificLibraryFilePaths (FilePathList &filepath)

## Define Documentation

#define S_ISDIR | ( | mode |  | ) | (mode&__S_IFDIR)