(File file)
| 21 | private static final String TAG = Path.class.getSimpleName(); |
| 22 | |
| 23 | private static File mkdir(File file) { |
| 24 | if (file == null || file.exists()) return file; |
| 25 | if (file.mkdirs()) Logger.t(TAG).d("Created dir:" + file); |
| 26 | return file; |
| 27 | } |
| 28 | |
| 29 | public static boolean exists(String path) { |
| 30 | return new File(path.replace("file://", "")).exists(); |