| |
- create_folder(drive, foldername, current_folder_id)
- This function creates a file in a Google Drive account.
:param: drive - The link to the Google Drive account.
:param: foldername - The folder to create.
:param: current_folder_id - The folder the new folder should be created in.
- init()
- This function handles Google Drive authentication and authentication exceptions, as well as enables a 30 second timeout.
:return: Returns a link to the Google Drive account.
- init_drive()
- This function starts the Google Drive authentication process and handles timeout exceptions.
:return: Returns a link to the Google Drive account.
- list_folders_files(drive, current_folder_id)
- This function retrieves the contents of a folder in a Google Drive Account.
:param: drive - The link to the Google Drive account.
:param: current_folder_id - The folder to retrieves contents from.
:return: Returns a list of files.
- timeout(seconds_before_timeout)
- This function enables a timeout and raises an exception on timeout.
:param: seconds_before_timeout - The length of the timeout.
- upload_file(drive, filename, current_folder_id, title)
- This function uploads a file to a Google Drive account.
:param: drive - The link to the Google Drive account.
:param: filename - The file to be uploaded.
:param: current_folder_id - The folder the file should be uploaded to.
:param: title - The title of the file to be uploaded.
|