-
Notifications
You must be signed in to change notification settings - Fork 546
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
/**
* Create a file using java.io API
*/
private File createFileInAppSpecificDir(String filename, String savedDir) {
File newFile = new File(savedDir, filename);
try {
boolean rs = newFile.createNewFile();
if (rs) {
return newFile;
} else {
logError("It looks like you are trying to save file in public storage but not setting 'saveInPublicStorage' to 'true'");
}
} catch (IOException e) {
e.printStackTrace();
logError("Create a file using java.io API failed ");
}
return null;
}
should add this
if (newFile.exists()) {
return newFile;
}
Faaatman, kennir, tulioccalazans and luoyieekennir and tulioccalazans
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers