support dataset as well

This commit is contained in:
Yingda Chen
2025-02-07 14:30:39 +08:00
parent 57376f51b6
commit 87c542bb55

View File

@@ -171,8 +171,8 @@ class DownloadCMD(CLICommand):
revision=dataset_revision,
cache_dir=self.args.cache_dir,
local_dir=self.args.local_dir,
allow_file_pattern=self.args.include,
ignore_file_pattern=self.args.exclude,
allow_file_pattern=convert_patterns(self.args.include),
ignore_file_pattern=convert_patterns(self.args.exclude),
max_workers=self.args.max_workers,
)
else: