platform/android/Rhodes/src/com/rhomobile/rhodes/Utils.java in rhodes-2.0.0.beta9 vs platform/android/Rhodes/src/com/rhomobile/rhodes/Utils.java in rhodes-2.0.0.beta10

- old
+ new

@@ -147,7 +147,19 @@ is.close(); if (os != null) os.close(); } } + + public static String getDirName(String filePath) { + if (filePath == null) + return null; + return new File(filePath).getParent(); + } + + public static String getBaseName(String filePath) { + if (filePath == null) + return null; + return new File(filePath).getName(); + } }