Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit de47d24

Browse files
authored
Update FileUtils.java
1 parent 48d8cb2 commit de47d24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/id.my.alvinq.prokitid.libs/FileUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
import java.nio.file.attribute.BasicFileAttributes;
66

77
public class FileUtils {
8-
public static void copyFile(String from, String to) throws IOException {
8+
public static void copyFile(String from, String to) {
9+
try {
910
Files.copy(Paths.get(from), Paths.get(to), StandardCopyOption.REPLACE_EXISTING);
11+
} catch (IOException error) {
12+
}
1013
}
1114
}

0 commit comments

Comments
 (0)