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.
This commit is contained in:
Goffi 2022-10-10 15:23:59 +02:00
commit f160577a65

View file

@ -1828,7 +1828,7 @@ class Memory:
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 ##