kouyou.google.drive module¶
This module make use of Google Drive API.
-
kouyou.google.drive.connect_to_google_drive()¶ Create connection with google drive api.
- Returns
instance of google drive api connection
- Return type
googleapiclient.discovery.Resource
-
kouyou.google.drive.create_3rdparty_file_in_drive(file_name, folder_id)¶ Create an empty file of type 3rd party app on Drive Folder.
- Parameters
file_name (str) – Name of the file.
folder_id (str) – Folder id to save the file
-
kouyou.google.drive.delete_file_in_drive(file_name, folder_id)¶ Delete every file with name from especific dir on Drive.
- Parameters
file_name (str) – Name of the file to be deleted
folder_id (str) – parent folder id where lies the files