Mercurial > libervia-backend
diff sat/memory/memory.py @ 3932:7af29260ecb8
core: fix and renamed getLocalPath -> get_local_path:
- renaming is following global methods renaming to use snake_case
- for reasons lost in the mists of time, a `profile` argument was used while checking if
`client` is set is enough, and `client.profile` was escaped but actually not used in the
path.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 10 Oct 2022 15:23:59 +0200 |
parents | 580df5b557be |
children | 524856bd7b19 |
line wrap: on
line diff
--- a/sat/memory/memory.py Fri Oct 07 22:22:13 2022 +0200 +++ b/sat/memory/memory.py Mon Oct 10 15:23:59 2022 +0200 @@ -1828,7 +1828,7 @@ file_data = files_data[0] if file_data["type"] != C.FILE_TYPE_DIRECTORY and recursive: raise ValueError("recursive can only be set for directories") - files_path = self.host.getLocalPath(None, C.FILES_DIR, profile=False) + files_path = self.host.get_local_path(None, C.FILES_DIR) await self._deleteFile(client, peer_jid, recursive, files_path, file_data) ## Cache ##