pub fn check_disk_space(path: &Path, needed: usize) -> Result<(), StorageError>
Check available disk space before writing