11 #ifndef _UT_DIRUTIL_H_
12 #define _UT_DIRUTIL_H_
61 const char *basepath =
nullptr);
63 const char *basepath =
nullptr);
65 const char *basepath =
nullptr);
67 const char *basepath =
nullptr);
104 #include <sys/types.h>
113 #define EOVERFLOW 132
121 UT_API struct dirent *readdir( DIR *dirp );
122 UT_API void closedir( DIR *dirp );
127 #include <sys/types.h>
128 #include <sys/stat.h>
GT_API const UT_StringHolder filename
UT_API int UTunixFullPathSpecified(const char *name)
UT_API bool UTisRootPath(const char *filename)
UT_API void UTmakeRelativeFilePath(UT_String &path, const char *basepath=nullptr)
GLsizei const GLchar *const * path
UT_API const UT_StringArray & UTgetAbsolutePathPrefixes()
UT_API bool UTisValidDirectory(const char *path)
Returns true if the given path is a readable directory.
UT_API int UTgetRootPrefixLength(const char *filename)
UT_API bool UTisHiddenFile(const char *basepath, const char *filename)
UT_API void UTmakeAbsoluteFilePath(UT_String &path, const char *basepath=nullptr)
UT_API int UTfullPathSpecified(const char *name)
GLuint const GLchar * name
UT_API bool UTfileExists(const char *path)
UT_API void UTaddAbsolutePathPrefix(const char *prefix)
UT_API bool UTisRegularFile(const char *path)
Returns true if path is a regular file, without permission checks.
UT_API char * getUnixCwd(char *buffer, int maxlen)
Get the current working directory.
UT_API void UTnormalizeFilePath(UT_String &path)
UT_API bool UTisDirectory(const char *path)
Returns true if path is a directory, without permission checks.
UT_API bool UTisAbsolutePath(const char *filename)
UT_API void UTrealPath(UT_String &path)
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 bool UTisValidRegularFile(const char *path)