生成文件夹 @param path 路径
(String path)
| 76 | * @param path 路径 |
| 77 | */ |
| 78 | public static Boolean createFolder(String path){ |
| 79 | |
| 80 | //生成文件目录 |
| 81 | File dirFile = new File(PathUtil.defaultExternalDirectory()+File.separator+path); |
| 82 | if (!(dirFile.exists()) && !(dirFile.isDirectory())){ |
| 83 | dirFile.mkdirs(); |
| 84 | return true; |
| 85 | } |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | |
| 90 | /** |
no test coverage detected