Explorar el Código

added createDirectory

ncannasse hace 10 años
padre
commit
90d0a87db4
Se han modificado 1 ficheros con 10 adiciones y 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
+	}
+
 }