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

fs.remove yields callback before directory is really deleted #20

Closed
vslinko opened this issue Feb 27, 2013 · 1 comment
Closed

fs.remove yields callback before directory is really deleted #20

vslinko opened this issue Feb 27, 2013 · 1 comment

Comments

@vslinko
Copy link

vslinko commented Feb 27, 2013

fs = require "fs.extra"

dir = "test"

fs.mkdirSync dir

fs.delete dir, ->
    fs.mkdir dir
    ###
    Error: EEXIST, file already exists 'test'
        at Object.fs.mkdirSync (fs.js:483:18)
        at Object.<anonymous> (/Users/vyacheslav/test.coffee:8:6)
        at Object.<anonymous> (/Users/vyacheslav/test.coffee:14:4)
        at Module._compile (module.js:449:26)
        at Object.exports.run (/usr/local/share/npm/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:82:25)
        at compileScript (/usr/local/share/npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
        at fs.stat.notSources.(anonymous function) (/usr/local/share/npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
        at fs.readFile (fs.js:176:14)
        at Object.oncomplete (fs.js:297:15)
    ###
@vslinko
Copy link
Author

vslinko commented Feb 27, 2013

Moved to isaacs/rimraf#18

@vslinko vslinko closed this as completed Feb 27, 2013
ovr pushed a commit to ovr/node-fs-extra that referenced this issue Nov 12, 2020
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

1 participant