Ver Fonte

added createDirectory

ncannasse há 10 anos atrás
pai
commit
90d0a87db4
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      hxd/File.hx

+ 10 - 0
hxd/File.hx

@@ -235,4 +235,14 @@ class File {
 		#end
 	}
 
+	public static function createDirectory( path : String ) {
+		#if air3
+		getRelPath(path).createDirectory();
+		#elseif sys
+		sys.FileSystem.createDirectory(path);
+		#else
+		throw "Not supported";
+		#end
+	}
+
 }