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
Retrieve disk information #2386
Comments
@libuv/collaborators what do you think? The original request from Node is for something like |
I'm okay with adding it. One issue I see is that You probably want |
+1. I guess we can have some |
Fixes: libuv#2386 PR-URL: libuv#2396 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Inside Node there is no api to get the disk information, for example: total, used & available storage on a specific disk.
We would like that in Libuv you will add this feature, and in Node we will expose it inside the
fs
api - https://nodejs.org/api/fs.htmlDesirable implementation code on Node:
const diskInfo = fs.diskInfoSync("C:")
diskInfo.total
- disk total size.diskInfo.used
- how much of the drive is used.diskInfo.available
- how much free space have left.nodejs/node#10745
The text was updated successfully, but these errors were encountered: