mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 15:17:02 -04:00
Fix Tools.write
This commit is contained in:
parent
00f6d29fb9
commit
57461d30e6
@ -782,7 +782,10 @@ public final class Tools {
|
||||
}
|
||||
|
||||
public static void write(String path, String content) throws IOException {
|
||||
try(FileOutputStream outStream = new FileOutputStream(path)) {
|
||||
File file = new File(path);
|
||||
File parent = file.getParentFile();
|
||||
if(!parent.exists()) parent.mkdirs();
|
||||
try(FileOutputStream outStream = new FileOutputStream(file)) {
|
||||
IOUtils.write(content, outStream);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user