Skip to content

v0.2.54..v0.2.55 changeset FileUtils.h

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h b/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h
index 328d0d2..6ee8b00 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/FileUtils.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #ifndef FILEUTILS_H
@@ -44,6 +44,13 @@ class FileUtils
 public:
 
   /**
+   * Creates a folder path using QDir::mkpath in a more thread-safe way
+   * @param path relative or absolute path to create (think `mkdir -p`)
+   * @return true if successful
+   */
+  static bool makeDir(const QString& path);
+
+  /**
    * Delete a directory along with all of its contents.
    *
    * @param dirName Path of directory to remove.
Clone this wiki locally