Compare commits

..

No commits in common. "1264a09ed0a3847d8f89acbf4dcc8b4a8d6cf589" and "b0ef8c3fc0b84670b0ab3d5ed8e80fe063b231ad" have entirely different histories.

2 changed files with 4 additions and 2 deletions

View file

@ -50,7 +50,7 @@ def _create_config(path: str) -> None:
'toml_imports_path': os.path.join(path, 'toml_imports'), 'toml_imports_path': os.path.join(path, 'toml_imports'),
'import_scripts_path': os.path.join(path, 'import_scripts'), 'import_scripts_path': os.path.join(path, 'import_scripts'),
'tracker': 'datalad', 'tracker': 'datalad',
'cached': 'True', 'cached': True,
} }
with open(os.path.join(path, '.corrlib'), 'w') as configfile: with open(os.path.join(path, '.corrlib'), 'w') as configfile:
config.write(configfile) config.write(configfile)

View file

@ -14,7 +14,9 @@ def get(path: str, file: str) -> None:
def save(path: str, message: str, files: Optional[list[str]]=None) -> None: def save(path: str, message: str, files: Optional[list[str]]=None) -> None:
if files is not None: if files is None:
files = path
else:
files = [os.path.join(path, f) for f in files] files = [os.path.join(path, f) for f in files]
dl.save(files, message=message, dataset=path) dl.save(files, message=message, dataset=path)
return return