Skip to content

[ENH] un-hardcode dm_blacklist_rm's list of directories to purge from#344

Merged
DESm1th merged 2 commits intoTIGRLab:mainfrom
DESm1th:blacklist_del
Dec 13, 2022
Merged

[ENH] un-hardcode dm_blacklist_rm's list of directories to purge from#344
DESm1th merged 2 commits intoTIGRLab:mainfrom
DESm1th:blacklist_del

Conversation

@DESm1th
Copy link
Copy Markdown
Contributor

@DESm1th DESm1th commented Nov 28, 2022

This updates dm_blacklist_rm to use a config value (BlacklistRm) or command line arg (--path) to override the default list of paths to purge blacklisted files from.

@DESm1th DESm1th requested review from jerdra and slimnsour November 28, 2022 23:57
Comment thread bin/dm_blacklist_rm.py Outdated
Comment on lines +15 to +20
--path KEY If provided overrides the 'blacklist_rm' setting
from the config files, which defines the directories
to delete blacklisted items from. 'KEY' may be the name
of any path defined in the main config file (e.g.
'nii'). This option can be repeated to include multiple
paths.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a good idea to specify that this option can be specified multiple times. Its implicit in the usage syntax but not obvious if you aren't already familiar!

Copy link
Copy Markdown
Contributor

@slimnsour slimnsour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great implementation Dawn!

@DESm1th DESm1th merged commit 5d8379f into TIGRLab:main Dec 13, 2022
@DESm1th DESm1th deleted the blacklist_del branch December 13, 2022 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants