mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: use mkdir() on Linux for now
This commit is contained in:
parent
c98db8c437
commit
52e3586be3
@ -62,11 +62,11 @@ pub fn dir_exists(path string) bool {
|
|||||||
|
|
||||||
// mkdir creates a new directory with the specified path.
|
// mkdir creates a new directory with the specified path.
|
||||||
pub fn mkdir(path string) {
|
pub fn mkdir(path string) {
|
||||||
$if linux {
|
//$if linux {
|
||||||
C.syscall(83, path.str, 511) // sys_mkdir
|
//C.syscall(83, path.str, 511) // sys_mkdir
|
||||||
} $else {
|
//} $else {
|
||||||
C.mkdir(path.str, 511)// S_IRWXU | S_IRWXG | S_IRWXO
|
C.mkdir(path.str, 511)// S_IRWXU | S_IRWXG | S_IRWXO
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
// exec starts the specified command, waits for it to complete, and returns its output.
|
// exec starts the specified command, waits for it to complete, and returns its output.
|
||||||
|
Loading…
Reference in New Issue
Block a user