ΒΆErrorOr<llvm::sys::fs::space_info> disk_space(
const llvm::Twine& Path)
ErrorOr<llvm::sys::fs::space_info> disk_space(
const llvm::Twine& Path)
Description
Get disk space usage information. Note: Users must be careful about "Time Of Check, Time Of Use" kind of bug. Note: Windows reports results according to the quota allocated to the user.
Declared at: llvm/include/llvm/Support/FileSystem.h:1156
Parameters
- const llvm::Twine& Path
- Input path.
Returns
a space_info structure filled with the capacity, free, and available space on the device \a Path is on. A platform specific error_code is returned on error.