mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
thirdparty/ui for macOS (temporary)
This commit is contained in:
@ -126,6 +126,15 @@ pub fn mv(old, new string) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO implement actual cp()
|
||||
pub fn cp(old, new string) {
|
||||
$if windows {
|
||||
panic('not implemented')
|
||||
} $else {
|
||||
os.system('cp $old $new')
|
||||
}
|
||||
}
|
||||
|
||||
fn vfopen(path, mode string) *C.FILE {
|
||||
$if windows {
|
||||
return C._wfopen(path.to_wide(), mode.to_wide())
|
||||
|
Reference in New Issue
Block a user