Skip to content

Commit 8c82458

Browse files
authored
codelistのパスに '..' が含まれていたのを正規化 (Synesthesias#183)
1 parent 6a41802 commit 8c82458

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.idea/vcs.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dataset/gml_file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ namespace plateau::dataset {
231231
void copyFiles(const std::set<std::string>& path_set, const fs::path& src_base_path,
232232
const fs::path& dest_base_path) {
233233
for (const auto& path: path_set) {
234-
const auto src = fs::path(src_base_path).append(path).make_preferred();
235-
const auto dest = fs::path(dest_base_path).append(path).make_preferred();
234+
const auto src = fs::path(src_base_path).append(path).make_preferred().lexically_normal();
235+
const auto dest = fs::path(dest_base_path).append(path).make_preferred().lexically_normal();
236236
if (!fs::exists(src)) {
237237
std::cout << "file not exist : " << src.u8string() << std::endl;
238238
continue;

0 commit comments

Comments
 (0)