Browse Source

Dir -> directory.

Nicolas Cannasse 19 years ago
parent
commit
b8a8f8cd0b
2 changed files with 5 additions and 5 deletions
  1. 3 3
      std/neko/FileSystem.hx
  2. 2 2
      std/tools/haxedoc/Main.hx

+ 3 - 3
std/neko/FileSystem.hx

@@ -78,7 +78,7 @@ class FileSystem {
 		return kind(path) == kdir;
 	}
 
-	public static function createDir( path : String ) {
+	public static function createDirectory( path : String ) {
 		sys_create_dir( untyped path.__s, 493 );
 	}
 
@@ -86,11 +86,11 @@ class FileSystem {
 		file_delete(untyped path.__s);
 	}
 
-	public static function deleteDir( path : String ) {
+	public static function deleteDirectory( path : String ) {
 		sys_remove_dir(untyped path.__s);
 	}
 
-	public static function readDir( path : String ) : Array<String> {
+	public static function readDirectory( path : String ) : Array<String> {
 		var l : Array<Dynamic> = sys_read_dir(untyped path.__s);
 		var a = new Array();
 		while( l != null ) {

+ 2 - 2
std/tools/haxedoc/Main.hx

@@ -645,7 +645,7 @@ class DocView {
 			var old = Url.base;
 			Url.base = "../"+Url.base;
 			path += name + "/";
-			try neko.FileSystem.createDir(path) catch( e : Dynamic ) { }
+			try neko.FileSystem.createDirectory(path) catch( e : Dynamic ) { }
 			for( e in entries )
 				generateEntry(html,e,path);
 			Url.base = old;
@@ -659,7 +659,7 @@ class DocView {
 		save(html,null,"index.html");
 		Url.base = "";
 		Url.index = "../index";
-		try neko.FileSystem.createDir("content") catch( e : Dynamic ) { }
+		try neko.FileSystem.createDirectory("content") catch( e : Dynamic ) { }
 		for( e in entries )
 			generateEntry(html,e,"content/");
 	}