获取全路径中的文件名 @param file 文件 @return 文件名
(File file)
| 1446 | * @return 文件名 |
| 1447 | */ |
| 1448 | public static String getFileName(File file) { |
| 1449 | if (file == null) { |
| 1450 | return null; |
| 1451 | } |
| 1452 | return getFileName(file.getPath()); |
| 1453 | } |
| 1454 | |
| 1455 | /** |
| 1456 | * 获取全路径中的文件名 |
no test coverage detected