Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: Cleaning sipi tmp folder results in an error when there are lots…
… of files (DEV-316) (#2052)
  • Loading branch information
irinaschubert committed Apr 27, 2022
1 parent 5e4e914 commit 33e6896
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 33e6896

Please sign in to comment.