1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix cp() spaces in files names

This commit is contained in:
Naheel 2020-03-22 10:43:24 +03:00 committed by GitHub
parent a02395fe2d
commit c50c6812ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ pub fn cp(old, new string) ?bool {
return error_with_code('failed to copy $old to $new', int(result))
}
} $else {
os.system('cp $old $new')
os.system('cp "$old" "$new"')
return true // TODO make it return true or error when cp for linux is implemented
}
}