Skip to content

Commit

Permalink
Update gDrive_calculator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
XtremeRahul authored Sep 4, 2020
1 parent 1a745ee commit e6cd7c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gDrive_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, service=None):
self.__G_DRIVE_DIR_MIME_TYPE = "application/vnd.google-apps.folder"
self.__service = service
if service is None:
print("Pass service to GoogleDriveSizeCalculate class.")
print("Pass service to GoogleDriveSizeCalculate class. Please fully read the instructions given in the repo.")
return
self.main_name = None
self.total_bytes = 0
Expand Down Expand Up @@ -141,9 +141,8 @@ def gDrive_directory(self, **kwargs) -> None:
self.total_files += 1
self.gDrive_file(**file_)



#
# ~ Notes ~
# BUILD YOUR SERVICE HERE AND PASS TO THE GoogleDriveSizeCalculate CLASS
#
credentials = None
Expand Down Expand Up @@ -182,7 +181,7 @@ def gDrive_directory(self, **kwargs) -> None:
calculator = GoogleDriveSizeCalculate() #(service) ##Complete building service and then pass it
calculate = calculator.gdrive_checker(LINKorID)

## Note that, gdrive folder size calculating speed depends on how many file inside a folder.
## Note that, gdrive folder size calculating speed depends on how many files inside a folder.

if not calculate is None:
print('\n')
Expand Down

0 comments on commit e6cd7c8

Please sign in to comment.