We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0abf448 commit 40be782Copy full SHA for 40be782
src/gfs/filesystem.cpp
@@ -450,7 +450,7 @@ namespace gfs
450
if (!std::filesystem::exists(filename) || !std::filesystem::is_regular_file(filename))
451
return;
452
453
- if (m_existingFileWatchers.find(filename) != m_existingFileWatchers.end())
+ if (m_existingFileWatchers.find(filename.string()) != m_existingFileWatchers.end())
454
455
456
auto filewatch =
@@ -459,6 +459,7 @@ namespace gfs
459
OnFileModified(path);
460
});
461
m_fileWatchers.push_back(std::move(filewatch));
462
+ m_existingFileWatchers.emplace(filename.string());
463
}
464
465
void Filesystem::OnFileModified(const std::filesystem::path& filePath)
0 commit comments