Code Cleanup
This commit is contained in:
parent
45bae59ac9
commit
1ee0fa0107
1 changed files with 7 additions and 0 deletions
|
@ -335,4 +335,11 @@ public class MiscUtils
|
|||
return new File[0];
|
||||
}
|
||||
|
||||
public static File deleteExistingFile(File file)
|
||||
{
|
||||
if (file.exists())
|
||||
file.delete();
|
||||
|
||||
return file;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue