summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-22 10:58:45 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-22 10:58:45 (GMT)
commitecd5a18928716ce9452e0e4d5ab62a4f3182b77c (patch)
tree42b2067149c9753fb24ab6b635d23b4ba3fa56fa /Source/kwsys/Directory.hxx.in
parent850bdc4203f4599fceaed2ae9ba21c53e71fd0fb (diff)
parentca03a9be6c629bec1ff989057bc3974d74b2904a (diff)
downloadCMake-ecd5a18928716ce9452e0e4d5ab62a4f3182b77c.zip
CMake-ecd5a18928716ce9452e0e4d5ab62a4f3182b77c.tar.gz
CMake-ecd5a18928716ce9452e0e4d5ab62a4f3182b77c.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2022-01-22 (16e180ad)
Diffstat (limited to 'Source/kwsys/Directory.hxx.in')
-rw-r--r--Source/kwsys/Directory.hxx.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/kwsys/Directory.hxx.in b/Source/kwsys/Directory.hxx.in
index d501116..9d0f462 100644
--- a/Source/kwsys/Directory.hxx.in
+++ b/Source/kwsys/Directory.hxx.in
@@ -6,6 +6,7 @@
#include <@KWSYS_NAMESPACE@/Configure.h>
#include <@KWSYS_NAMESPACE@/Status.hxx>
+#include <cstddef>
#include <string>
namespace @KWSYS_NAMESPACE@ {
@@ -55,6 +56,26 @@ public:
const char* GetFile(unsigned long) const;
/**
+ * Return the name of the file at the given 0-based index.
+ */
+ std::string const& GetFileName(std::size_t i) const;
+
+ /**
+ * Return the absolute path to the file at the given 0-based index.
+ */
+ std::string GetFilePath(std::size_t i) const;
+
+ /**
+ * Return whether the file at the given 0-based index is a directory.
+ */
+ bool FileIsDirectory(std::size_t i) const;
+
+ /**
+ * Return whether the file at the given 0-based index is a symlink.
+ */
+ bool FileIsSymlink(std::size_t i) const;
+
+ /**
* Return the path to Open'ed directory
*/
const char* GetPath() const;