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

How to check if folder exist and read the folder name #69

Closed
ghost opened this issue Jul 9, 2014 · 1 comment
Closed

How to check if folder exist and read the folder name #69

ghost opened this issue Jul 9, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 9, 2014

Its possible check if some folder exist and if exist read or take the folder name and set as variable?

@jprichardson
Copy link
Owner

Ya, but this isn't related to fs-extra at all.

var fs = require('fs')

var doesExist = fs.existsSync('/tmp')
console.log('Does it exist? ' + doesExist)

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