From 52e3586be3afc0541d6eb3e8b2d668044b791a39 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 19 Nov 2019 00:33:43 +0300 Subject: [PATCH] os: use mkdir() on Linux for now --- vlib/os/os_nix.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/os/os_nix.v b/vlib/os/os_nix.v index 10cea5a856..bf318ea4b2 100644 --- a/vlib/os/os_nix.v +++ b/vlib/os/os_nix.v @@ -62,11 +62,11 @@ pub fn dir_exists(path string) bool { // mkdir creates a new directory with the specified path. pub fn mkdir(path string) { - $if linux { - C.syscall(83, path.str, 511) // sys_mkdir - } $else { + //$if linux { + //C.syscall(83, path.str, 511) // sys_mkdir + //} $else { 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.