support case insensitive and normalized file and folder names.

This commit is contained in:
2023-07-19 13:46:23 +09:00
parent 0f12549ec3
commit b569c20b6e
5 changed files with 14 additions and 11 deletions

View File

@ -68,7 +68,7 @@ class FileApi(BaseApi):
def move(self, file: File, folder_id: str) -> bool:
# print(self.__class__.__name__ + "::" + sys._getframe().f_code.co_name)
url = self.ENTRYPOINT + file.id + "/move/"
data = {"folder": folder_id}
data = {"folder": folder_id, "name": file.name}
token_check(self.connection)
response = self.connection.post(url, data=data)
self._raise_response_error(response)