From: Oleg Broytman Date: Thu, 26 May 2016 13:27:54 +0000 (+0300) Subject: Refactor find parameters X-Git-Tag: 0.0.8~8 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=85300d2a19c07d9b07e7b8f08807440014b641d4 Refactor find parameters There is no need to search files in depth. Optimization: filter by name then by type. --- diff --git a/Makefile b/Makefile index 39368fa..6867d64 100644 --- a/Makefile +++ b/Makefile @@ -21,4 +21,4 @@ tests: test .PHONY: clean clean: - find . -depth -type f -name '*.py[co]' -delete + find . -name '*.py[co]' -type f -delete