int check_disk_space_for_filesize(char *path, INT64_T file_size, UINT64_T disk_avail_threshold)
Return whether a file will fit in the given directory.
int host_disk_info_get(const char *path, UINT64_T *avail, UINT64_T *total)
Get the total and available space on a disk.