Rename get_dir_size() to get_dir_count()
[libi2ncommon] / src / filefunc.cpp
index cf5601a..e1e4882 100644 (file)
@@ -308,7 +308,7 @@ bool get_dir(
     std::vector< std::string >& result,
     bool include_dot_names )
 {
-    // code copied for get_dir_size; keep in sync
+    // code copied to get_dir_count; keep in sync
     DIR* dir = ::opendir( path.c_str());
     if (!dir)
     {
@@ -349,7 +349,7 @@ std::vector< std::string > get_dir(const std::string& path, bool include_dot_nam
  * @param include_dot_names determines if dot-files should be included in the count.
  * @return the number of entries in the directory; return -1 in case of error
  */
-int get_dir_size(const std::string& path, bool include_dot_names)
+int get_dir_count(const std::string& path, bool include_dot_names)
 {
     // code is a simplified copy of get_dir, above. Keep in sync
     int result = 0;