mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
os: fix cp() spaces in files names
This commit is contained in:
parent
a02395fe2d
commit
c50c6812ce
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue