From c39094a8df249f7a088176508c9a2852e665a2a7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 12 Nov 2020 03:51:07 -0800 Subject: [PATCH] Clarify these docstrings regarding file id vs. public handle. --- src/mega/mega.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mega/mega.py b/src/mega/mega.py index e36ec51..3dd6cf5 100644 --- a/src/mega/mega.py +++ b/src/mega/mega.py @@ -586,13 +586,13 @@ class Mega: def delete(self, public_handle): """ - Delete a file by its public handle + Delete a file by its file id. """ return self.move(public_handle, self._trash_folder_node_id) def delete_url(self, url): """ - Delete a file by its url + Delete a file by its public url. """ (public_handle, decryption_key) = self._parse_url(url) file_id = self.get_id_from_public_handle(public_handle) @@ -600,7 +600,7 @@ class Mega: def destroy(self, file_id): """ - Destroy a file by its private id + Destroy a file by its file id. """ request = { 'a': 'd', @@ -611,7 +611,7 @@ class Mega: def destroy_url(self, url): """ - Destroy a file by its url + Destroy a file by its public url. """ (public_handle, decryption_key) = self._parse_url(url) file_id = self.get_id_from_public_handle(public_handle)