Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readdirSync not showing the correct results after file changes #56

Open
ssmlee04 opened this issue Sep 2, 2015 · 1 comment
Open

readdirSync not showing the correct results after file changes #56

ssmlee04 opened this issue Sep 2, 2015 · 1 comment

Comments

@ssmlee04
Copy link

ssmlee04 commented Sep 2, 2015

The first time I do fs.readdirSync it gives me the correct result. After I delete one file and use chokidar to trigger this unlink event fs.readdirSync still gives me the same results. Is this the correct behavior? If yes, is there anyway I can get the updated list of files? Thanks.

@mk-pmb
Copy link

mk-pmb commented Jul 19, 2016

Could you provide an example JS program that also prints messages before and after each file operation, in order to easily check order of execution?
If the issue only applies in a program that has been transformed by brfs, please also provide the tramsformed source. Since this issue is posted in brfs, have you verified that it's actually fs.readdirSync that "still gives […] the same results"? Hasn't it been transformed to a constant representing the file system state at transform time?

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

No branches or pull requests

2 participants