Skip to content

FileSystem.cpExternal creates a invalid file if the file already access #71

@imanshul

Description

@imanshul

react-native: 0.62.0
react-native-file-access: 1.7.1
Platform: Android

Bug
When trying to copy the file from local cache to the downloads file and if the file already access it is creating a new file with. (1)..(2) in name but it's adding that after extension resulting in a invalid file.

To reproduce
Download same file again using FileSystem.cpExternal giving same name

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions