docfsgood first issue
Repository-Metriken
- Stars
- (117.218 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 18T 17h) (219 gemergte PRs in 30 T)
Beschreibung
Affected URL(s)
https://nodejs.org/api/fs.html#class-fsstatfs
Description of the problem
statfs.bsizefails to mention if the size is reported in bits or bytes- While
statfs.bavailandstatfs.bfreecan be used to calculate available and free space, it would be appropriate to put an example on how to use them Example:import { statfs } from "fs/promises" const statsfs = await statfs("/tmp") const available_bits_or_bytes_not_documented = statsfs.bsize * statsfs.bavail - Similarly,
statfs.blocksandstatfs.fileswould strongly benefit from an example - What's
statfs.typeand why is it a number?