| 61 | |
| 62 | |
| 63 | def development(): # Start of the function just to count the files in the development directory |
| 64 | dev_dir = os.path.join( |
| 65 | path, "development" |
| 66 | ) # Joins the paths to get the development directory - 1.1 |
| 67 | dev_count = sum( |
| 68 | (len(f) for _, _, f in os.walk(dev_dir)) |
| 69 | ) # Get a count for all the files in the directory |
| 70 | if ( |
| 71 | dev_count > 10 |
| 72 | ): # If the number of files is greater then 10, then print the following messages |
| 73 | print("\nYou have too many in here, finish them or delete them !!!!!") |
| 74 | print("You have: " + str(dev_count) + " waiting to be finished!!") |
| 75 | elif dev_count == 0: # Unless the count is 0, then print the following messages |
| 76 | print("\nDevelopment directory is all clear") |
| 77 | else: |
| 78 | print( |
| 79 | "\nYou have: " + str(dev_count) + " waiting to be finished!!" |
| 80 | ) # If it is any other number then print the following message, showing the number outstanding. |
| 81 | |
| 82 | |
| 83 | clear_screen() # Call the function to clear the screen |