diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2026-08-22 21:20:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-22 17:20:47 -0400 |
| commit | 7f13cffd3efcc50e8ee70809f3a208dcb6b1771b (patch) | |
| tree | d52313ea8b4e186b60565bce387d9aa99308c0de /src/utils | |
| parent | 098f88d078a900c7292af56b94269baaafe8c3eb (diff) | |
Support reading ymls from a common symlinked dir (#255)
* Support reading ymls from a common symlinked dir
* Fix windows path error.
* Chagne to
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/TorchUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/TorchUtils.cpp b/src/utils/TorchUtils.cpp index f754234..8b9ad48 100644 --- a/src/utils/TorchUtils.cpp +++ b/src/utils/TorchUtils.cpp @@ -38,7 +38,7 @@ int getFileDepth(const fs::path& base, const fs::path& p) { std::vector<fs::directory_entry> Torch::getRecursiveEntries(const fs::path baseDir) { std::set<fs::directory_entry> result; - for (const auto& entry : fs::recursive_directory_iterator(baseDir)) { + for (const auto& entry : fs::recursive_directory_iterator(baseDir, std::filesystem::directory_options::follow_directory_symlink)) { result.insert(entry); } |
