Index: src/DefaultFileSystem.cpp |
diff --git a/src/DefaultFileSystem.cpp b/src/DefaultFileSystem.cpp |
index 67f249286a52be2d787a345cae5cf41d9dcaa047..9453fbacbaa13a4476508bb11c651c4ba1fbbacb 100644 |
--- a/src/DefaultFileSystem.cpp |
+++ b/src/DefaultFileSystem.cpp |
@@ -68,6 +68,15 @@ namespace |
#endif |
} |
+DefaultFileSystemSync::DefaultFileSystemSync(const std::string& path) |
+ : basePath(path) |
+{ |
+ if (!basePath.empty() && *basePath.rbegin() == PATH_SEPARATOR) |
+ { |
+ basePath.resize(basePath.size() - 1); |
+ } |
+} |
+ |
IFileSystem::IOBuffer |
DefaultFileSystemSync::Read(const std::string& path) const |
{ |
@@ -183,16 +192,6 @@ std::string DefaultFileSystemSync::Resolve(const std::string& path) const |
} |
} |
-void DefaultFileSystemSync::SetBasePath(const std::string& path) |
-{ |
- basePath = path; |
- |
- if (*basePath.rbegin() == PATH_SEPARATOR) |
- { |
- basePath.resize(basePath.size() - 1); |
- } |
-} |
- |
DefaultFileSystem::DefaultFileSystem(const Scheduler& scheduler, std::unique_ptr<DefaultFileSystemSync> syncImpl) |
: scheduler(scheduler), syncImpl(std::move(syncImpl)) |
{ |