7#ifndef PXR_BASE_TF_PATH_UTILS_H
8#define PXR_BASE_TF_PATH_UTILS_H
11#include "pxr/base/tf/api.h"
16PXR_NAMESPACE_OPEN_SCOPE
42 bool allowInaccessibleSuffix =
false,
43 std::string* error = 0);
56 bool stripDriveSpecifier =
false);
124std::vector<std::string>
TfGlob(std::vector<std::string>
const& paths,
125 unsigned int flags=ARCH_GLOB_DEFAULT);
134std::vector<std::string>
TfGlob(std::string
const& path,
135 unsigned int flags=ARCH_GLOB_DEFAULT);
137PXR_NAMESPACE_CLOSE_SCOPE
Architecture dependent file system access.
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::string TfReadLink(std::string const &path)
Returns the value of a symbolic link.
TF_API std::string TfNormPath(std::string const &path, bool stripDriveSpecifier=false)
Normalizes the specified path, eliminating double slashes, etc.
TF_API bool TfIsRelativePath(std::string const &path)
Return true if and only if a path is relative (not absolute).
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.
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...