You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
320 B

  1. import os
  2. import gapi
  3. from gapi.drive_api import drive_api,APPLICATION_NAME
  4. my_api = drive_api(APPLICATION_NAME,r'test\drive\client_secret.json',r'test\drive')
  5. # t1 = my_api.get_file_by_path('/Python/Lib',False)
  6. ##t1 = my_api.mkdirs('/test/t1/this/is/a/path/why/isnt/this/working')
  7. t1 = my_api.upload('test','/test/t3')