// 修改文件名 public static boolean modifyFileName(String serverPath, String oldFileName, String newLoginNo) { String oldPath = serverPath + "/" + oldFileName; String newPath = serverPath + "/" + newLoginNo + "-" + oldFileName.substring(oldFileName.indexOf('-') + 1); File oldFile = new File(oldPath); File newFile = new File(newPath); if (oldFile.renameTo(newFile)) { return true; } else { return false; } }
java 修改文件名
免责声明:文章转载自《java 修改文件名》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇最佳点云分割分析【转载】 再励学习面试真题 (强化学习面试真题)下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=