Skip to content

Commit

Permalink
feat: add function to delete empty dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Feb 16, 2025
1 parent 26f2b66 commit 7277421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .shells/.all/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -546,3 +546,8 @@ check_git_working_directory_changes() {
return 1
fi
}

delete_empty_directories() {
echo "Deleting empty directories in ${1}"
find "${1}" -type d -empty -delete
}

0 comments on commit 7277421

Please sign in to comment.