mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-13 14:41:03 +08:00
removed FileExistsException that is not needed
This commit is contained in:
parent
d5580557f1
commit
729d141c3f
@ -329,7 +329,7 @@ public class FileUtils extends Plugin {
|
|||||||
* @throws EncodingException
|
* @throws EncodingException
|
||||||
* @throws JSONException
|
* @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
|
// Check for invalid file name
|
||||||
if (newName != null && newName.contains(":")) {
|
if (newName != null && newName.contains(":")) {
|
||||||
throw new EncodingException("Bad file name");
|
throw new EncodingException("Bad file name");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user