Functions

cmtk::FileUtils Namespace Reference
[cmtkSystem Library]

Utility functions for file and directory access. More...

Functions

int RecursiveMkDir (const char *filename, const int permissions=0755)
 Recursively create a new directory.
int RecursiveMkPrefixDir (const char *filename, const int permissions=0755)
 Recursively create all directories on a full filename's prefix.
char * GetAbsolutePath (char *absPath, const char *relPath)
 Make an absolute path name from a (possibly) relative path.

Detailed Description

Utility functions for file and directory access.


Function Documentation

int cmtk::FileUtils::RecursiveMkDir ( const char *  filename,
const int  permissions = 0755 
)

Recursively create a new directory.

Returns:
Zero if operation was successful, mkdir() error code otherwise.

Definition at line 67 of file cmtkFileUtils.cxx.

References RecursiveMkPrefixDir().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines