diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-07-07 18:21:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-07-07 18:21:42 +0000 |
commit | c7f083297cd796c2fadb534307e4ef406fd68945 (patch) | |
tree | 9b2229594545a12585fe9e49e955595c4f5c5725 /include/llvm/System | |
parent | 8d4b9eddc00ad2c1c8f5bada32750c72f06c1517 (diff) | |
download | external_llvm-c7f083297cd796c2fadb534307e4ef406fd68945.zip external_llvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.gz external_llvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.bz2 |
For PR495:
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22345 91177308-0d34-0410-b5e6-96231b3b80d8
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 |