Bash: Find¶
Overview¶
Using to search in the directory tree
Usage¶
Delete cache folder from Python¶
If you using -delete
, the error shell find -delete "directory not empty"
The true type
# Position syntax
# <command> <search-path> <option>
find ./ -name '__pycache__' -type d -path 'component/*' -exec rm -r {} +
https://unix.stackexchange.com/questions/249501/shell-find-delete-directory-not-empty