summaryrefslogtreecommitdiff
path: root/src/utils/TorchUtils.h
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-01-29 21:02:51 -0600
committerLywx <kiritodev01@gmail.com>2025-01-30 10:35:05 -0600
commit043fc76ebc8ff401f5d121660bf58497c71dff2c (patch)
tree64bc3219a00794faf3aac88fd90435c25cd1256d /src/utils/TorchUtils.h
parent18b85b04eea0e0fede4f9410fa7cdd87618029f1 (diff)
Replaced recursive iteration to be sorted by name and depth
Diffstat (limited to 'src/utils/TorchUtils.h')
-rw-r--r--src/utils/TorchUtils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/TorchUtils.h b/src/utils/TorchUtils.h
index 271ab98..da30acb 100644
--- a/src/utils/TorchUtils.h
+++ b/src/utils/TorchUtils.h
@@ -4,8 +4,9 @@
#include <fstream>
#include <sstream>
#include <iomanip>
-#include <algorithm>
#include <cstdint>
+#include <algorithm>
+#include <filesystem>
namespace Torch {
template< typename T >
@@ -23,4 +24,6 @@ std::string to_hex(T number, const bool append0x = true) {
}
uint32_t translate(uint32_t offset);
+std::vector<std::filesystem::directory_entry> getRecursiveEntries(const std::filesystem::path baseDir);
+
}; \ No newline at end of file