Mercurial Hosting > luan
diff core/src/luan/modules/Utils.java @ 237:97d175772fed
implement mmake
git-svn-id: https://luan-java.googlecode.com/svn/trunk@238 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 06 Oct 2014 04:07:56 +0000 |
parents | f9e3e64132e1 |
children | 705d14f4d8ee |
line wrap: on
line diff
--- a/core/src/luan/modules/Utils.java Sun Oct 05 09:11:10 2014 +0000 +++ b/core/src/luan/modules/Utils.java Mon Oct 06 04:07:56 2014 +0000 @@ -51,7 +51,7 @@ copyAll(in,out); return out.toByteArray(); } - +/* public static boolean exists(File file) { try { return file.exists() && file.getName().equals(file.getCanonicalFile().getName()); @@ -59,12 +59,12 @@ throw new RuntimeException(e); } } - +*/ public static File toFile(String path) { if( path.contains("//") ) return null; File file = new File(path); - return exists(file) ? file : null; + return file.exists() ? file : null; } public static URL toUrl(String path) {