Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Any easy way to upload a file to a specific directory? #160

Closed
darouwan opened this issue Aug 10, 2019 · 2 comments
Closed

Any easy way to upload a file to a specific directory? #160

darouwan opened this issue Aug 10, 2019 · 2 comments

Comments

@darouwan
Copy link

I am willing to upload a file to a specific directory, like upload new.txt to new_dir/new.txt
However, it seems I must find the directory id firstly then upload the file.
Is there any convenient way to implement it?

@KTibow
Copy link

KTibow commented Mar 16, 2020

@darouwan, try using this code instead:

client.item(drive='me', path="new_dir/new.txt").upload("new.txt")

Consider closing your issue.

@baywet
Copy link
Member

baywet commented Oct 2, 2024

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information

@baywet baywet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants