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

@ -73,7 +73,7 @@ class FileSharingManagement(object):
self.host = host
self._c = host.plugins["XEP-0050"]
self._t = host.plugins["XEP-0264"]
self.files_path = host.getLocalPath(None, C.FILES_DIR, profile=False)
self.files_path = host.get_local_path(None, C.FILES_DIR)
host.bridge.addMethod(
"fileSharingDelete",
".plugin",