Explorar o código

added createDirectory

ncannasse %!s(int64=10) %!d(string=hai) anos
pai
achega
90d0a87db4
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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
+	}
+
 }