mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: fix os.mv edge case and Windows style paths (#6302)
This commit is contained in:
@ -186,13 +186,9 @@ fn test_cp() {
|
||||
os.rm(new_file_name)
|
||||
}
|
||||
|
||||
/*
|
||||
fn test_mv() {
|
||||
work_dir := os.join_path(os.temp_dir(),'v','mv_test')
|
||||
if os.exists(work_dir) {
|
||||
os.rmdir_all(work_dir)
|
||||
}
|
||||
mkdir_all(work_dir)
|
||||
work_dir := os.join_path(os.getwd(),'mv_test')
|
||||
os.mkdir_all(work_dir)
|
||||
// Setup test files
|
||||
tfile1 := os.join_path(work_dir,'file')
|
||||
tfile2 := os.join_path(work_dir,'file.test')
|
||||
@ -230,7 +226,6 @@ fn test_mv() {
|
||||
expected = tfile3
|
||||
assert os.exists(expected) && !is_dir(expected) == true
|
||||
}
|
||||
*/
|
||||
|
||||
fn test_cp_r() {
|
||||
// fileX -> dir/fileX
|
||||
|
Reference in New Issue
Block a user