Expand ~/ and relative path in pathnames
This commit is contained in:
parent
77706fca47
commit
5fb85baf53
@ -317,6 +317,7 @@ void TouchFile(const char* filename) {
|
|||||||
|
|
||||||
char* PathCopy(char* __dst, const char* __src) {
|
char* PathCopy(char* __dst, const char* __src) {
|
||||||
strschg_environ(strxcpy(__dst, __src, sizeof(Path)));
|
strschg_environ(strxcpy(__dst, __src, sizeof(Path)));
|
||||||
|
getcwd(__dst, sizeof(Path)); // expand ~/ & etc.
|
||||||
return AddBackslash(__dst);
|
return AddBackslash(__dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user