mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
zulip_tools.py: Extract may_be_perform_purging() function.
Based on the `dry_run` flag, this function either purges the list of directories passed to them or prints a listing of the directories it would have purged/kept_back, had the `dry_run` flag been false.
This commit is contained in:
committed by
Tim Abbott
parent
5662726a22
commit
20f062f726
@@ -61,7 +61,8 @@ def main():
|
||||
args = parse_args()
|
||||
caches_in_use = get_caches_in_use(args.threshold_days)
|
||||
purge_unused_caches(
|
||||
NODE_MODULES_CACHE_PATH, caches_in_use, args.threshold_days, args.dry_run, "node modules")
|
||||
NODE_MODULES_CACHE_PATH, caches_in_use, args.threshold_days,
|
||||
args.dry_run, "node modules cache")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user