diff options
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Path.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index dc7e324..04c0a2b 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -241,6 +241,14 @@ namespace sys { /// @brief Determines if the path name references a directory. bool isDirectory() const; + /// This function determines if the path refers to a hidden file. The + /// notion of hidden files is defined by the underlying system. The + /// system may not support hidden files in which case this function always + /// returns false on such systems. Hidden files have the "hidden" + /// attribute set on Win32. On Unix, hidden files start with a period. + /// @brief Determines if the path name references a hidden file. + bool isHidden() const; + /// This function determines if the path name in this object references /// the root (top level directory) of the file system. The details of what /// is considered the "root" may vary from system to system so this method @@ -303,7 +311,7 @@ namespace sys { /// @returns true if the pathname references a readable file. /// @brief Determines if the path is a readable file or directory /// in the file system. - bool readable() const; + bool canRead() const; /// This function determines if the path name references a writable file /// or directory in the file system. Unlike isFile and isDirectory, this @@ -312,7 +320,7 @@ namespace sys { /// @returns true if the pathname references a writable file. /// @brief Determines if the path is a writable file or directory /// in the file system. - bool writable() const; + bool canWrite() const; /// This function determines if the path name references an executable /// file in the file system. Unlike isFile and isDirectory, this @@ -321,7 +329,7 @@ namespace sys { /// @returns true if the pathname references an executable file. /// @brief Determines if the path is an executable file in the file /// system. - bool executable() const; + bool canExecute() const; /// This function returns the current contents of the path as a /// std::string. This allows the underlying path string to be manipulated |