flowjs/flow.js

When importing a folder, all files from same folder have same relativePath [v3 only]

bertrandg opened this issue · 3 comments

I got this bug when importing a folder using function webkitReadDataTransfer() (& readDirectory()).

Here are the details, I drop the following all folder:

image

Then, like you see in screenshot, all files inside a folder got same fullPath property:

image
image
image
image

I found the error comes from there:

entry.file((file) => fileReadSuccess(file, fullPath), readError);

That could be easily fix, I will make a merge request later this week if you are ok with it.

yes, feel free to submit it. Have you checked v2? Does it handle it ok?

Fix merged for v3.

And v2 handles it ok:
image

That's great! Thanks for double checking it