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

os: make os.mkdir_all more robust (honor / on windows too), add a test for it

This commit is contained in:
Delyan Angelov
2021-10-24 19:16:46 +03:00
parent f34daf9ff4
commit e99b699ac6
2 changed files with 4 additions and 1 deletions

View File

@@ -201,6 +201,8 @@ fn test_ls() {
fn create_tree() ? {
os.mkdir_all('myfolder/f1/f2/f3') ?
os.mkdir_all('myfolder/a1/a2/a3') ?
f3 := os.real_path('myfolder/f1/f2/f3')
assert os.is_dir(f3)
create_file('myfolder/f1/f2/f3/a.txt') ?
create_file('myfolder/f1/f2/f3/b.txt') ?
create_file('myfolder/f1/f2/f3/c.txt') ?