From: Oleg Broytman Date: Thu, 26 May 2016 13:27:32 +0000 (+0300) Subject: Refactor find parameters X-Git-Tag: 2.1.3~3 X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=commitdiff_plain;h=85cd07aab2b155d3fcf472684719cf803d1d750d 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 f452a6f..89ab254 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,4 @@ distr: .PHONY: clean clean: - find . -depth -type f -name '*.py[co]' -delete + find . -name '*.py[co]' -type f -delete