HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_DirUtil.h File Reference
#include "UT_API.h"
#include "UT_FileStat.h"
#include <SYS/SYS_Deprecated.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <dirent.h>
#include <unistd.h>
#include <stdlib.h>
+ Include dependency graph for UT_DirUtil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

UT_API int UTunixFullPathSpecified (const char *name)
 
UT_API int UTfullPathSpecified (const char *name)
 
UT_API int UTisValidDirectory (const char *path)
 
UT_API bool UTisAbsolutePath (const char *filename)
 
UT_API bool UTisRootPath (const char *filename)
 
UT_API void UTmakeAbsoluteFilePath (UT_String &path, const char *basepath=NULL)
 
UT_API const UT_StringArrayUTgetAbsolutePathPrefixes ()
 
UT_API void UTaddAbsolutePathPrefix (const char *prefix)
 
UT_API bool UTisHiddenFile (const char *filename)
 
UT_API bool UTisValidRegularFile (const char *path)
 
UT_API char * getUnixCwd (char *buffer, int maxlen)
 Get the current working directory. More...
 
UT_API int statLastRead (DIR *dirp, const char *path, UT_FileStat &file_stat)
 Do the equivalent of a stat on the last file from readdir or opendir. More...
 

Function Documentation

UT_API char* getUnixCwd ( char *  buffer,
int  maxlen 
)

Get the current working directory.

UT_API int statLastRead ( DIR *  dirp,
const char *  path,
UT_FileStat file_stat 
)

Do the equivalent of a stat on the last file from readdir or opendir.

UT_API void UTaddAbsolutePathPrefix ( const char *  prefix)
Examples:
FS/FS_HomeHelper.C.
UT_API int UTfullPathSpecified ( const char *  name)
UT_API const UT_StringArray& UTgetAbsolutePathPrefixes ( )
UT_API bool UTisAbsolutePath ( const char *  filename)
UT_API bool UTisHiddenFile ( const char *  filename)
UT_API bool UTisRootPath ( const char *  filename)
UT_API int UTisValidDirectory ( const char *  path)
UT_API bool UTisValidRegularFile ( const char *  path)

Returns true if the given path is a readable, regular file, ie. not a directory.

UT_API void UTmakeAbsoluteFilePath ( UT_String path,
const char *  basepath = NULL 
)
UT_API int UTunixFullPathSpecified ( const char *  name)