summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Directory.hxx.in
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-06-22 14:35:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-06-22 14:35:37 (GMT)
commit847c3a58494665dd47fe57a027df00ad7d16159d (patch)
treeb6082911c7769c6c788c2a7e3231eea00d26d45c /Source/kwsys/Directory.hxx.in
parent55b0935a79cf3c32637b9a4d2c39da7322870042 (diff)
downloadCMake-847c3a58494665dd47fe57a027df00ad7d16159d.zip
CMake-847c3a58494665dd47fe57a027df00ad7d16159d.tar.gz
CMake-847c3a58494665dd47fe57a027df00ad7d16159d.tar.bz2
ENH: add a higher performance method to get the number of files in a directory
Diffstat (limited to 'Source/kwsys/Directory.hxx.in')
-rw-r--r--Source/kwsys/Directory.hxx.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/Directory.hxx.in b/Source/kwsys/Directory.hxx.in
index 22aafcc..ddb9104 100644
--- a/Source/kwsys/Directory.hxx.in
+++ b/Source/kwsys/Directory.hxx.in
@@ -48,6 +48,12 @@ public:
unsigned long GetNumberOfFiles() const;
/**
+ * Return the number of files in the specified directory.
+ * A higher performance static method.
+ */
+ static unsigned long GetNumberOfFilesInDirectory(const char*);
+
+ /**
* Return the file at the given index, the indexing is 0 based
*/
const char* GetFile(unsigned long) const;