mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
removed FileExistsException that is not needed
This commit is contained in:
parent
18bf4cd94b
commit
1dfc65face
@ -322,14 +322,13 @@ public class FileUtils extends Plugin {
|
||||
* @param newName for the file directory to be called, if null use existing file name
|
||||
* @param move if false do a copy, if true do a move
|
||||
* @return a Entry object
|
||||
* @throws FileExistsException
|
||||
* @throws NoModificationAllowedException
|
||||
* @throws IOException
|
||||
* @throws InvalidModificationException
|
||||
* @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");
|
||||
|
Loading…
Reference in New Issue
Block a user