Merge branch 'v6-dev' of gitee.com:dromara/hutool into v6-dev

This commit is contained in:
Looly 2023-05-19 22:28:29 +08:00
commit 586b29f3d1

View File

@ -96,7 +96,7 @@ public class UploadFile {
public File write(File destination) throws IOException {
assertValid();
if (destination.isDirectory() == true) {
if (destination.isDirectory()) {
destination = new File(destination, this.header.getFileName());
}
if (data != null) {