Skip to content

Conversation

@bertrandg
Copy link

Bug detailled here:
#341

if (entry.isFile) {
var fullPath = entry.fullPath;
entry.file((file) => fileReadSuccess(file, fullPath), readError);
fullPaths[entry.name] = entry.fullPath;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this create a bug if we have files with the same name on different directories?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No risk because readDirectory() is called recursively for each directory (so fullPaths is a new empty object each time).

@AidasK AidasK merged commit 7b79e4d into flowjs:v3 May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants