Merge pull request #1866 from anaer/patch-9

Update PathUtil.java
This commit is contained in:
Golden Looly 2021-09-30 17:37:08 +08:00 committed by GitHub
commit 6ccae6646e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ public class PathUtil {
*/
public static Path copyFile(Path src, Path target, CopyOption... options) throws IORuntimeException {
Assert.notNull(src, "Source File is null !");
Assert.notNull(target, "Destination File or directiory is null !");
Assert.notNull(target, "Destination File or directory is null !");
final Path targetPath = isDirectory(target) ? target.resolve(src.getFileName()) : target;
// 创建级联父目录