mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
removed FileExistsException that is not needed
This commit is contained in:
@@ -329,7 +329,7 @@ public class FileUtils extends Plugin {
|
||||
* @throws EncodingException
|
||||
* @throws JSONException
|
||||
*/
|
||||
private JSONObject transferTo(String fileName, JSONObject newParent, String newName, boolean move) throws JSONException, FileExistsException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException {
|
||||
private JSONObject transferTo(String fileName, JSONObject newParent, String newName, boolean move) throws JSONException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException {
|
||||
// Check for invalid file name
|
||||
if (newName != null && newName.contains(":")) {
|
||||
throw new EncodingException("Bad file name");
|
||||
|
||||
Reference in New Issue
Block a user