杨博 (Yang Bo) пре 11 година
родитељ
комит
ba5c2ba80d
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      std/java/_std/sys/FileSystem.hx

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

@@ -61,7 +61,12 @@ class FileSystem {
 
 
 	public static function fullPath( relPath : String ) : String
 	public static function fullPath( relPath : String ) : String
 	{
 	{
-		return new File(relPath).getCanonicalPath();
+		try {
+			return new File(relPath).getCanonicalPath();
+		} catch (e: java.io.IOException) {
+			throw new java.lang.RuntimeException(e);
+			return null;
+		}
 	}
 	}
 
 
 	public static function absPath ( relPath : String ) : String {
 	public static function absPath ( relPath : String ) : String {