Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Exists normalize the path but other operations do not. #389

Open
agarant opened this issue Jun 5, 2017 · 0 comments
Open

Exists normalize the path but other operations do not. #389

agarant opened this issue Jun 5, 2017 · 0 comments
Milestone

Comments

@agarant
Copy link

agarant commented Jun 5, 2017

Hi!

Currently, the exists function is normalizing the path but other operations (mv, cp, etc) are not. As a result you can find yourself in a situation where for a path, exists returns true but other operations (mv, cp, etc) will throw a "Does not exists error". One situation in particular is when the path is prefixed with file:///.

Is there a reason why the path is not normalized on cp, mv, etc ? I think that this would also solve #387

RNFB Version: 0.10.5
RN Version: 0.43.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants