mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +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 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
|
* @param move if false do a copy, if true do a move
|
||||||
* @return a Entry object
|
* @return a Entry object
|
||||||
* @throws FileExistsException
|
|
||||||
* @throws NoModificationAllowedException
|
* @throws NoModificationAllowedException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* @throws InvalidModificationException
|
* @throws InvalidModificationException
|
||||||
* @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…
Reference in New Issue
Block a user