mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: make chdir() return error
This commit is contained in:
@ -11,7 +11,7 @@ const (
|
||||
)
|
||||
|
||||
fn test_szip_create_temp_files() ? {
|
||||
os.chdir(os.temp_dir())
|
||||
os.chdir(os.temp_dir()) or {}
|
||||
os.rmdir_all(test_path) or {}
|
||||
os.mkdir(test_path) ?
|
||||
os.write_file(fpath1, 'file one') ?
|
||||
@ -45,7 +45,7 @@ fn test_reading_zipping_files() ? {
|
||||
file_name_list << 'file_${i:02}.txt'
|
||||
}
|
||||
|
||||
os.chdir(os.temp_dir())
|
||||
os.chdir(os.temp_dir()) or {}
|
||||
os.rmdir_all(test_path) or {}
|
||||
os.mkdir(test_path) ?
|
||||
for c, f_name in file_name_list {
|
||||
|
Reference in New Issue
Block a user