mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: return the long path for os.temp_dir() on windows, even for folders like c:\someth~1
(#17623)
This commit is contained in:
@ -183,3 +183,9 @@ pub fn is_readable(path string) bool {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// get_long_path has no meaning for *nix, but has for windows, where `c:\folder\some~1` for example
|
||||
// can be the equivalent of `c:\folder\some spa ces`. On *nix, it just returns a copy of the input path.
|
||||
fn get_long_path(path string) !string {
|
||||
return path
|
||||
}
|
||||
|
Reference in New Issue
Block a user