[VFS] Reimplement ResolvePath. Add FindSymbolicLink, ResolveSymbolicLink.

This commit is contained in:
gibbed
2019-07-29 17:55:24 -05:00
parent 54b0e2aff6
commit 05d2d76cff
2 changed files with 45 additions and 48 deletions

View File

@@ -33,7 +33,7 @@ class VirtualFileSystem {
bool RegisterSymbolicLink(const std::string& path, const std::string& target);
bool UnregisterSymbolicLink(const std::string& path);
bool IsSymbolicLink(const std::string& path);
bool FindSymbolicLink(const std::string& path, std::string& target);
Entry* ResolvePath(const std::string& path);
Entry* ResolveBasePath(const std::string& path);
@@ -50,6 +50,8 @@ class VirtualFileSystem {
xe::global_critical_region global_critical_region_;
std::vector<std::unique_ptr<Device>> devices_;
std::unordered_map<std::string, std::string> symlinks_;
bool ResolveSymbolicLink(const std::string& path, std::string& result);
};
} // namespace vfs