You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: script_count.py
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -33,34 +33,34 @@ def github(): # Start of the function just to count the fil
33
33
github_dir=os.path.join(dropbox, 'github') # Joins the paths to get the github directory - 1.1
34
34
github_count=sum((len(f) for_, _, finos.walk(github_dir))) # Get a count for all the files in the directory
35
35
ifgithub_count>5: # If the number of files is greater then 5, then print the following messages
36
-
print'\nYou have too many in here, start uploading !!!!!'
37
-
print'You have: '+str(github_count) +' waiting to be uploaded to github!!'
36
+
print('\nYou have too many in here, start uploading !!!!!')
37
+
print('You have: '+str(github_count) +' waiting to be uploaded to github!!')
38
38
elifgithub_count==0: # Unless the count is 0, then print the following messages
39
-
print'\nGithub directory is all Clear'
39
+
print('\nGithub directory is all Clear')
40
40
else: # If it is any other number then print the following message, showing the number outstanding.
41
-
print'\nYou have: '+str(github_count) +' waiting to be uploaded to github!!'
41
+
print('\nYou have: '+str(github_count) +' waiting to be uploaded to github!!')
42
42
43
43
defdevelopment(): # Start of the function just to count the files in the development directory
44
44
dev_dir=os.path.join(path, 'development') # Joins the paths to get the development directory - 1.1
45
45
dev_count=sum((len(f) for_, _, finos.walk(dev_dir))) # Get a count for all the files in the directory
46
46
ifdev_count>10: # If the number of files is greater then 10, then print the following messages
47
-
print'\nYou have too many in here, finish them or delete them !!!!!'
48
-
print'You have: '+str(dev_count) +' waiting to be finished!!'
47
+
print('\nYou have too many in here, finish them or delete them !!!!!')
48
+
print('You have: '+str(dev_count) +' waiting to be finished!!')
49
49
elifdev_count==0: # Unless the count is 0, then print the following messages
50
-
print'\nDevelopment directory is all clear'
50
+
print('\nDevelopment directory is all clear')
51
51
else:
52
-
print'\nYou have: '+str(dev_count) +' waiting to be finished!!'# If it is any other number then print the following message, showing the number outstanding.
52
+
print('\nYou have: '+str(dev_count) +' waiting to be finished!!')# If it is any other number then print the following message, showing the number outstanding.
53
53
54
54
clear_screen() # Call the function to clear the screen
55
55
56
-
print'\nYou have the following :\n'
57
-
print'AutoIT:\t'+str(count_files(path, '.au3'))# Run the count_files function to count the files with the extension we pass
0 commit comments