Path: Add RealPath()
This commit is contained in:
@ -31,6 +31,9 @@ void SanitizeFileName(std::string* str, bool strip_slashes = true);
|
||||
/// Returns true if the specified path is an absolute path (C:\Path on Windows or /path on Unix).
|
||||
bool IsAbsolute(const std::string_view& path);
|
||||
|
||||
/// Resolves any symbolic links in the specified path.
|
||||
std::string RealPath(const std::string_view& path);
|
||||
|
||||
/// Makes the specified path relative to another (e.g. /a/b/c, /a/b -> ../c).
|
||||
/// Both paths must be relative, otherwise this function will just return the input path.
|
||||
std::string MakeRelative(const std::string_view& path, const std::string_view& relative_to);
|
||||
|
||||
Reference in New Issue
Block a user