Move file to folder #247
Answered
by
Dario-Ciceri
Dario-Ciceri
asked this question in
Q&A
-
Hi, is there a way to move an existing spreadsheet to a folder? current_file['parents'][0]['id'] = folders[current_file_title_to_datetime.month-1]['id']
current_file.Upload() it doesn't give errors but the Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
Dario-Ciceri
Nov 17, 2022
Replies: 1 comment
-
oh nevermind, like this it works: current_file['parents'] = [{"id":folders[current_file_title_to_datetime.month-1]['id']}]
current_file.Upload() I know there's a filesystem which it would be easier to use but it doesn't seems to work, it always gives me AssertionError when trying to mv, move, cp or copy files... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shcheklein
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh nevermind, like this it works:
I know there's a filesystem which it would be easier to use but it doesn't seems to work, it always gives me AssertionError when trying to mv, move, cp or copy files...