24 #ifndef PXR_BASE_TF_FILE_UTILS_H
25 #define PXR_BASE_TF_FILE_UTILS_H
122 std::vector<std::string> *,
184 bool followLinks =
false);
204 bool recursive =
false);
219 std::vector<std::string> *dirnames,
220 std::vector<std::string> *filenames,
221 std::vector<std::string> *symlinknames,
236 #endif // PXR_BASE_TF_FILE_UTILS_H
TF_API bool TfIsFile(std::string const &path, bool resolveSymlinks=false)
TF_API bool TfReadDir(std::string const &dirPath, std::vector< std::string > *dirnames, std::vector< std::string > *filenames, std::vector< std::string > *symlinknames, std::string *errMsg=NULL)
TF_API bool TfMakeDir(std::string const &path, int mode=-1)
GLsizei const GLchar *const * string
GLsizei const GLchar *const * path
std::function< bool(std::string const &, std::vector< std::string > *, std::vector< std::string > const &)> TfWalkFunction
PXR_NAMESPACE_OPEN_SCOPE TF_API bool TfPathExists(std::string const &path, bool resolveSymlinks=false)
TF_API bool TfSymlink(std::string const &src, std::string const &dst)
Creates a symbolic link from src to dst.
std::function< void(std::string const &, std::string const &)> TfWalkErrorHandler
TF_API bool TfIsLink(std::string const &path)
Returns true if the path exists and is a symbolic link.
TF_API void TfWalkDirs(std::string const &top, TfWalkFunction fn, bool topDown=true, TfWalkErrorHandler onError=0, bool followLinks=false)
TF_API bool TfDeleteFile(std::string const &path)
Deletes a file at path.
TF_API bool TfIsDirEmpty(std::string const &path)
Returns true if the path is an empty directory.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
TF_API bool TfMakeDirs(std::string const &path, int mode=-1, bool existOk=false)
#define PXR_NAMESPACE_CLOSE_SCOPE
TF_API bool TfIsWritable(std::string const &path)
TF_API bool TfIsDir(std::string const &path, bool resolveSymlinks=false)
GLdouble GLdouble GLdouble top
TF_API void TfWalkIgnoreErrorHandler(std::string const &path, std::string const &msg)
TF_API std::vector< std::string > TfListDir(std::string const &path, bool recursive=false)
TF_API bool TfTouchFile(std::string const &fileName, bool create=true)
TF_API void TfRmTree(std::string const &path, TfWalkErrorHandler onError=0)