diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-06-22 14:35:37 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-06-22 14:35:37 (GMT) |
commit | 847c3a58494665dd47fe57a027df00ad7d16159d (patch) | |
tree | b6082911c7769c6c788c2a7e3231eea00d26d45c /Source/kwsys/Directory.hxx.in | |
parent | 55b0935a79cf3c32637b9a4d2c39da7322870042 (diff) | |
download | CMake-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.in | 6 |
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; |