Преглед на файлове

use Os.makedirs for FileSystem.createDirectory

Simon Krajewski преди 11 години
родител
ревизия
c1db45d77f
променени са 1 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 9 9
      std/python/_std/sys/FileSystem.hx

+ 9 - 9
std/python/_std/sys/FileSystem.hx

@@ -60,20 +60,20 @@ class FileSystem {
 	{
 	{
 		return Path.isdir(path);
 		return Path.isdir(path);
 	}
 	}
-	public static function createDirectory( path : String ) : Void
-	{
-		Os.mkdir(path);
+
+	public static function createDirectory( path : String ) : Void {
+		Os.makedirs(path, 511, true);
 	}
 	}
-	public static function deleteFile( path : String ) : Void
-	{
+
+	public static function deleteFile( path : String ) : Void {
 		Os.remove(path);
 		Os.remove(path);
 	}
 	}
-	public static function deleteDirectory( path : String ) : Void
-	{
+
+	public static function deleteDirectory( path : String ) : Void {
 		Os.rmdir(path);
 		Os.rmdir(path);
 	}
 	}
-	public static function readDirectory( path : String ) : Array<String>
-	{
+
+	public static function readDirectory( path : String ) : Array<String> {
 		return Os.listdir(path);
 		return Os.listdir(path);
 	}
 	}