24 #ifndef PXR_BASE_TF_PATH_UTILS_H
25 #define PXR_BASE_TF_PATH_UTILS_H
28 #include "pxr/base/tf/api.h"
33 PXR_NAMESPACE_OPEN_SCOPE
58 std::string
TfRealPath(std::string
const& path,
59 bool allowInaccessibleSuffix =
false,
60 std::string* error = 0);
72 std::string
TfNormPath(std::string
const& path,
73 bool stripDriveSpecifier =
false);
94 std::string::size_type
105 std::string
TfAbsPath(std::string
const& path);
127 std::string
TfReadLink(std::string
const& path);
141 std::vector<std::string>
TfGlob(std::vector<std::string>
const& paths,
142 unsigned int flags=ARCH_GLOB_DEFAULT);
151 std::vector<std::string>
TfGlob(std::string
const& path,
152 unsigned int flags=ARCH_GLOB_DEFAULT);
154 PXR_NAMESPACE_CLOSE_SCOPE
TF_API std::string TfNormPath(std::string const &path, bool stripDriveSpecifier=false)
Normalizes the specified path, eliminating double slashes, etc.
Architecture dependent file system access.
TF_API std::string TfRealPath(std::string const &path, bool allowInaccessibleSuffix=false, std::string *error=0)
Returns the canonical path of the specified filename, eliminating any symbolic links encountered in t...
TF_API std::string TfReadLink(std::string const &path)
Returns the value of a symbolic link.
TF_API bool TfIsRelativePath(std::string const &path)
Return true if and only if a path is relative (not absolute).
TF_API std::string TfAbsPath(std::string const &path)
Returns the canonical absolute path of the specified filename.
TF_API std::string::size_type TfFindLongestAccessiblePrefix(std::string const &path, std::string *error=0)
Return the index delimiting the longest accessible prefix of path.
TF_API std::vector< std::string > TfGlob(std::vector< std::string > const &paths, unsigned int flags=ARCH_GLOB_DEFAULT)
Expands one or more shell glob patterns.
TF_API std::string TfGetExtension(std::string const &path)
Returns the extension for a file path.