Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Cleaning sipi tmp folder results in an error when there are lots of files (DEV-316) #2052

Merged
merged 3 commits into from Apr 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -280,12 +280,15 @@ clean-local-tmp:
@rm -rf .tmp
@mkdir .tmp

clean: docs-clean clean-local-tmp clean-docker ## clean build artifacts
clean: docs-clean clean-local-tmp clean-docker clean-sipi-tmp ## clean build artifacts
@rm -rf .env

.PHONY: clean-sipi-tmp
clean-sipi-tmp: ## deletes all files in Sipi's tmp folder
@rm -rf sipi/images/tmp/*
@mkdir empty_folder_for_clean_sipi_tmp
@cp sipi/images/tmp/.gitignore empty_folder_for_clean_sipi_tmp/.gitignore
@rsync -a --delete empty_folder_for_clean_sipi_tmp/ sipi/images/tmp/ # use rsync because it can handle large number of files
@rm -r empty_folder_for_clean_sipi_tmp

.PHONY: clean-sipi-projects
clean-sipi-projects: ## deletes all files uploaded within a project
Expand Down