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:
parent
0cd676115c
commit
f160577a65
1 changed files with 23 additions and 25 deletions
|
|
@ -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 ##
|
||||
|
|
|
|||
Loading…
Reference in a new issue