mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add an optional "mode" parameter to os.mkdir and os.mkdir_all (#14887)
This commit is contained in:

committed by
GitHub

parent
7c3571b274
commit
74bb5ae17a
@ -200,7 +200,7 @@ fn test_ls() {
|
||||
|
||||
fn create_tree() ? {
|
||||
os.mkdir_all('myfolder/f1/f2/f3')?
|
||||
os.mkdir_all('myfolder/a1/a2/a3')?
|
||||
os.mkdir_all('myfolder/a1/a2/a3', mode: 0o700)?
|
||||
f3 := os.real_path('myfolder/f1/f2/f3')
|
||||
assert os.is_dir(f3)
|
||||
create_file('myfolder/f1/f2/f3/a.txt')?
|
||||
|
Reference in New Issue
Block a user