diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-18 19:46:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-18 19:46:22 +0000 |
commit | fd52711675cb581e7672f131046e355a2b5ba167 (patch) | |
tree | 109d63b4c000db4e87f7bbdf5c6fe84d52e8de73 /include/llvm/System | |
parent | 636e5a216c8dab7567b5e5d8d1c7d982f507f7eb (diff) | |
download | external_llvm-fd52711675cb581e7672f131046e355a2b5ba167.zip external_llvm-fd52711675cb581e7672f131046e355a2b5ba167.tar.gz external_llvm-fd52711675cb581e7672f131046e355a2b5ba167.tar.bz2 |
Added "isDirectory" method to llvm::sys::Path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Path.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 57e0917..8ae8a00 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -321,7 +321,7 @@ namespace sys { /// shared library. /// @brief Determine if the path reference a dynamic library. bool isDynamicLibrary() const; - + /// This function determines if the path name references an existing file /// or directory in the file system. /// @returns true if the pathname references an existing file or @@ -330,6 +330,12 @@ namespace sys { /// the file system. bool exists() const; + /// This function determines if the path name refences an + /// existing directory. + /// @returns true if the pathname references an existing directory. + /// @brief Determins if the path is a directory in the file system. + bool isDirectory() const; + /// This function determines if the path name references a readable file /// or directory in the file system. This function checks for /// the existence and readability (by the current program) of the file |