From 0c685e27d0f6b4711e4e2c5813d57e4ce4199fed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Jan 2025 07:28:31 +0530 Subject: [PATCH] Add some method API docs --- src/calibre/devices/mtp/driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/devices/mtp/driver.py b/src/calibre/devices/mtp/driver.py index debe68a1ad..5e2dbadc9c 100644 --- a/src/calibre/devices/mtp/driver.py +++ b/src/calibre/devices/mtp/driver.py @@ -384,9 +384,11 @@ class MTP_DEVICE(BASE): self.get_mtp_file(f, outfile) def get_file_by_name(self, outfile, parent, *names): + ' Get the file parent/ + "/".join(names) and put it into outfile. Works with files not cached in FilesystemCache. ' self.get_mtp_file_by_name(parent, *names, stream=outfile) def list_folder_by_name(self, parent, *names): + ' List the contents of the folder parent/ + "/".join(names). Works with folders not cached in FilesystemCache. ' return tuple(ListEntry(x['name'], x['is_folder'], x['size']) for x in self.list_mtp_folder_by_name(parent, *names)) def prepare_addable_books(self, paths):