pub fn create_file<P: AsRef<Path>>( base_dir: P, file_type: FileType, storage_id: Option<StorageId>, ) -> Result<File>