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.

9 lines
359 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/site-packages", False)
  6. # t1.refresh()
  7. # t2 = my_api.mkdirs('/test/t1/this/is/a/path/why/isnt/this/working')
  8. # t3 = my_api.upload(os.getcwd(),'/test/t3')