Browse Source

rename absPath to absolutePath (closes #3204)

Simon Krajewski 10 years ago
parent
commit
2bc69d8a60

+ 1 - 1
std/cpp/_std/sys/FileSystem.hx

@@ -53,7 +53,7 @@ class FileSystem {
 		return new String(file_full_path(relPath));
 	}
 
-	public static function absPath ( relPath : String ) : String {
+	public static function absolutePath ( relPath : String ) : String {
 		if (haxe.io.Path.isAbsolute(relPath)) return relPath;
 		return haxe.io.Path.join([Sys.getCwd(), relPath]);
 	}

+ 1 - 1
std/cs/_std/sys/FileSystem.hx

@@ -82,7 +82,7 @@ class FileSystem {
 		return new FileInfo(relPath).FullName;
 	}
 
-	public static function absPath ( relPath : String ) : String {
+	public static function absolutePath ( relPath : String ) : String {
 		if (haxe.io.Path.isAbsolute(relPath)) return relPath;
 		return haxe.io.Path.join([Sys.getCwd(), relPath]);
 	}

+ 1 - 1
std/java/_std/sys/FileSystem.hx

@@ -68,7 +68,7 @@ class FileSystem {
 		}
 	}
 
-	public static function absPath ( relPath : String ) : String {
+	public static function absolutePath ( relPath : String ) : String {
 		if (haxe.io.Path.isAbsolute(relPath)) return relPath;
 		return haxe.io.Path.join([Sys.getCwd(), relPath]);
 	}

+ 1 - 1
std/neko/_std/sys/FileSystem.hx

@@ -50,7 +50,7 @@ class FileSystem {
 		return new String(file_full_path(untyped relPath.__s));
 	}
 
-	public static function absPath ( relPath : String ) : String {
+	public static function absolutePath ( relPath : String ) : String {
 		if (haxe.io.Path.isAbsolute(relPath)) return relPath;
 		return haxe.io.Path.join([Sys.getCwd(), relPath]);
 	}

+ 1 - 1
std/php/_std/sys/FileSystem.hx

@@ -63,7 +63,7 @@ class FileSystem {
 			return p;
 	}
 
-	public static function absPath ( relPath : String ) : String {
+	public static function absolutePath ( relPath : String ) : String {
 		if (haxe.io.Path.isAbsolute(relPath)) return relPath;
 		return haxe.io.Path.join([Sys.getCwd(), relPath]);
 	}

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

@@ -56,7 +56,7 @@ class FileSystem {
 		return Path.realpath(relPath);
 	}
 
-	public static function absPath ( relPath : String ) : String {
+	public static function absolutePath ( relPath : String ) : String {
 		if (haxe.io.Path.isAbsolute(relPath)) return relPath;
 		return haxe.io.Path.join([Sys.getCwd(), relPath]);
 	}

+ 4 - 3
std/sys/FileSystem.hx

@@ -55,7 +55,7 @@ extern class FileSystem {
 
 	/**
 		Returns the full path of the file or directory specified by `relPath`,
-		which is relative to the current working directory. Symlinks will be 
+		which is relative to the current working directory. Symlinks will be
 		followed and the path will be normalized.
 
 		If `relPath` is null, the result is unspecified.
@@ -64,12 +64,13 @@ extern class FileSystem {
 
 	/**
 		Returns the full path of the file or directory specified by `relPath`,
-		which is relative to the current working directory. The path doesn't 
+		which is relative to the current working directory. The path doesn't
 		have to exist.
 
 		If `relPath` is null, the result is unspecified.
 	**/
-	static function absPath( relPath : String ) : String;
+	//@:require(haxe_ver >= 3.2)
+	static function absolutePath( relPath : String ) : String;
 
 	/**
 		Tells if the file or directory specified by `path` is a directory.