Skip to content

Commit

Permalink
Print a success message if dirs are already clean
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Dec 10, 2023
1 parent 8907cf6 commit 2121483
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/clean-dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ def listEmptyDirs(dirName):
print(" Delete " + emptyDir)
os.rmdir(emptyDir)
emptyDirs = listEmptyDirs(buildDir)

#Print success message if it was already clean
if len(deletionList) == 0 and len(emptyDirs) == 0:
print("Directories already clean")

0 comments on commit 2121483

Please sign in to comment.