12 std::string mountPoint;
13 std::filesystem::path path;
17 std::string_view mountPoint,
18 const std::filesystem::path& projectPath
21 void UnmountDirectory(
22 std::string_view mountPoint
26 const std::vector<MountPoint>& GetMountedDirectories()
const;
28 void DispatchTask(
const std::filesystem::path& path)
const;
29 virtual bool TryGetPathWithMountPoint(
30 const std::filesystem::path& path,
31 std::filesystem::path& outMountedPath
34 virtual bool TryGetAbsolutePathFromMountedPath(
35 const std::filesystem::path& mountedPath,
36 std::filesystem::path& outAbsolutePath)
const;
38 void CleanupStaleFiles();
40 void HandleAddMetaFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath);
41 void HandleAddFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath);
43 void HandleModifyMetaFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath);
44 void HandleModifyFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath);
46 void HandleMoveMetaFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath, std::string oldFilename);
47 void HandleMoveFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath, std::string oldFilename);
49 void HandleDeleteMetaFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath);
50 void HandleDeleteFile(
const MountPoint& mountPoint,
const std::filesystem::directory_entry& filePath);
52 void PreprocessFilesOnMount(
54 std::filesystem::directory_iterator directoryIterator
57 void DiscoverFilesOnMount(
59 std::filesystem::directory_iterator directoryIterator);
61 bool CheckIfCompiledFileNeedsToBeUpdated(
63 const std::filesystem::path& path
66 void DiscoverFile(
const MountPoint& mountPoint,
const std::filesystem::path& path);
67 void UpdateCompiledFileIfNecessary(
const MountPoint& mountPoint,
const std::filesystem::path& path)
const;
68 std::filesystem::directory_entry GetFileFromMetaPath(
const std::filesystem::directory_entry& entry);
71 std::vector<MountPoint> mountedDirectories;
72 std::vector<std::filesystem::path> filesToImport;