gspread-pandas icon indicating copy to clipboard operation
gspread-pandas copied to clipboard

move_file fails to find a folder

Open citizen-seven opened this issue 5 years ago • 0 comments

Steps to reproduce:

  1. I have file, which belongs to google service account and the folder from my account the service account has access to.
  2. I call client.move_file and get Exception: Folder does not exist
  3. I've looked into code and found out that the client.move_file method looks for folder id and then moves file in it.
  4. I can get the folder it by calling client.find_folders. If there was a way to pass the id to client.move_file it would solve the issue.
client.create_folder('test')
client.refresh_directories()
# i see the folder here
client.directories 

# this fails
client.move_file('file_id', 'test') 

citizen-seven avatar Apr 03 '20 14:04 citizen-seven