43 bool ignore_umask =
false);
58 FS_Stat(time_t f_mtime = 0,
int64 fsize = 0,
bool is_dir =
false,
bool is_shortcut =
false)
59 : myModTime(f_mtime), mySize(fsize), myDirectory(is_dir), myShortcut(is_shortcut)
86 time_t
modTime()
const {
return myModTime; }
120 bool hasAccess(
int mode = 0)
const;
123 bool getIsDirectory()
const;
128 time_t getModTime()
const;
133 time_t getRecursiveMaxModTime()
const;
136 int64 getFileDataSize()
const;
160 bool only_readable =
false,
161 bool support_special_tokens =
false);
164 bool fileExists()
const;
165 bool canReadFile()
const;
166 bool canWriteFile()
const;
167 bool canWriteDirectory()
const;
168 bool canDeleteFile()
const;
169 static char getNextSepChar(
const char *source);
170 static char getPrevSepChar(
const char *source);
171 static bool customNavigatePath(
UT_String &
path,
const char *file);
172 static bool getPathOnDisk(
UT_String &
path,
const char *file);
174 static bool isNativePath(
const char *
path);
179 static bool getContentsFromIndexFile(
185 static bool getContentsFromDiskPath(
const char *
path,
191 static bool statFile(
const char *source,
220 virtual
bool canHandle(const
char *
source) = 0;
224 virtual
bool hasAccess(const
char *source,
int mode) = 0;
227 virtual
bool getIsDirectory(const
char *source) = 0;
230 virtual time_t getModTime(const
char *source) = 0;
233 virtual
int64 getSize (const
char *source) = 0;
241 virtual
bool getContents(const
char *source,
GT_API const UT_StringHolder filename
const UT_StringHolder & path() const
Return the path parsed from the source.
virtual char getPrevSepChar(const char *)
Previous separator character.
GLsizei const GLchar *const * path
virtual char getNextSepChar(const char *)
Next separator character.
virtual bool customNavigatePath(UT_String &path, const char *file)
**But if you need a result
FS_Stat(time_t f_mtime=0, int64 fsize=0, bool is_dir=false, bool is_shortcut=false)
FS_API bool FSmakeDirs(FS_Info &dir_info, mode_t mode=0777, bool ignore_umask=false)
Make a directory and all the parent directories needed.
static void removeInfoHelper(FS_InfoHelper *helper)
void updateSequenceStat(const FS_Stat &entry)
GLsizei GLsizei GLchar * source
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
OIIO_UTIL_API bool exists(string_view path) noexcept
Helper class for encapsulating file information.
virtual bool getPathOnDisk(UT_String &path, const char *file)
LeafData & operator=(const LeafData &)=delete
FS_FileAccessMode
Read, write and execute permissions for files.
const UT_StringHolder & section() const
Return the section parsed from the source.
bool operator==(const FS_Stat &s)
static void addInfoHelper(FS_InfoHelper *helper)
Class for retrieving file information.