mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
os: add an optional "mode" parameter to os.mkdir and os.mkdir_all (#14887)
This commit is contained in:
parent
7c3571b274
commit
74bb5ae17a
8 changed files with 16 additions and 12 deletions
|
@ -58,7 +58,7 @@ fn main() {
|
|||
if term_colors {
|
||||
os.setenv('VCOLORS', 'always', true)
|
||||
}
|
||||
os.mkdir_all(vcheckfolder) or {}
|
||||
os.mkdir_all(vcheckfolder, mode: 0o700) or {} // keep directory private
|
||||
defer {
|
||||
os.rmdir_all(vcheckfolder) or {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue