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

callback called before directory is really deleted #18

Closed
vslinko opened this issue Feb 27, 2013 · 2 comments
Closed

callback called before directory is really deleted #18

vslinko opened this issue Feb 27, 2013 · 2 comments

Comments

@vslinko
Copy link

vslinko commented Feb 27, 2013

rimraf = require "rimraf"
fs = require "fs"

dir = "test"

fs.mkdirSync dir

rimraf 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:10:6)
        at Object.<anonymous> (/Users/vyacheslav/test.coffee:29: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

OS: OS X 10.8.2
FS: Mac OS Extended (Journaled)

@vslinko
Copy link
Author

vslinko commented Feb 27, 2013

Oops, found my mistake :)

@vslinko vslinko closed this as completed Feb 27, 2013
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