-
Notifications
You must be signed in to change notification settings - Fork 6
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
打开指定文件夹 #1
Comments
你是指读取文件夹下的所有文件吗? 如果只读取直接的一级,用 如果希望遍历每一级,用 fs.walk('path/to/dir', {
dir(p){ console.log(p) },
file(p){ console.log(p) },
}) 多数情况你可能只需要遍历所有文件,可以用 |
哈哈,不是读取文件夹里的文件,就是单纯的打开文件资源管理器。 应用场景如:
|
这个不属于fs层的功能,你需要调用shell命令,可以用这个: var {exec} = require('tutils/process')
var dir = `C:\\Program Files`
exec(`explorer "${dir}"`) |
1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
看了一下好像没有打开文件夹的功能
可以增加这个功能吗?
The text was updated successfully, but these errors were encountered: