예제 #1
0
 private unsafe int Mkdir(path *path, mode_t mode)
 {
     try
     {
         return(_fileSystem.MkDir(ToSpan(path), mode));
     }
     catch
     {
         return(-EIO);
     }
 }
예제 #2
0
 private unsafe int Mkdir(path *path, mode_t mode)
 {
     try
     {
         return(_fileSystem.MkDir(ToSpan(path), mode));
     }
     catch (Exception ex)
     {
         Console.WriteLine($"MKDIR gets error: {ex.Message}");
         return(-EIO);
     }
 }