You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jason Ginchereau (JIRA)" <ji...@apache.org> on 2015/11/10 00:12:11 UTC

[jira] [Commented] (CB-8497) FileEntry.remove() and FileEntry.file() fail if the file has '#' in its name

    [ https://issues.apache.org/jira/browse/CB-8497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997614#comment-14997614 ] 

Jason Ginchereau commented on CB-8497:
--------------------------------------

I've reproduced this on Android, and I have a fix there, in the Android platform-specific code for the file plugin.

I confirmed the issue does NOT repro on Windows.

I will check iOS next.

> FileEntry.remove() and FileEntry.file() fail if the file has '#' in its name
> ----------------------------------------------------------------------------
>
>                 Key: CB-8497
>                 URL: https://issues.apache.org/jira/browse/CB-8497
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>         Environment: iOS 8.1.3 and Android 5.0
>            Reporter: Dani Palou
>            Assignee: Jason Ginchereau
>
> If I try to delete a file that has the character '#' in its name, the 'remove' function always fails, returning FileError.NOT_FOUND_ERR. If the file doesn't have the '#' character, the code works fine. This error is happening both in Android 5 and iOS 8.1.3.
> The same happens for the 'file' function.
> This is one of the FileEntries that I'm testing with:
> {quote}
> fullPath: "/tmp/test#.txt",
> isDirectory: false,
> isFIle: true,
> name: "test#.txt",
> nativeURL: "file:///storage/emulated/0/tmp/test%23.txt"
> {quote}
> I obtained this FileEntry using a DirectoryReader to read the contents of the parent folder.
> I'm testing with PhoneGap CLI 4.2.0, FilePlugin 1.3.3, PhoneGap Android 3.6.4 and PhoneGap iOS 3.7.0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org