Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8497

FileEntry.remove() and FileEntry.file() fail if the file has '#' in its name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-file
    • iOS 8.1.3 and Android 5.0

    Description

      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:

      fullPath: "/tmp/test#.txt",
      isDirectory: false,
      isFIle: true,
      name: "test#.txt",
      nativeURL: "file:///storage/emulated/0/tmp/test%23.txt"

      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.

      Attachments

        Issue Links

          Activity

            People

              jasongin Jason Ginchereau
              dpalou Dani Palou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: