From f9bba30c61cd25b80121012351fdc746bad6d279 Mon Sep 17 00:00:00 2001 From: Brad Macdonald Date: Fri, 22 Dec 2023 11:36:23 -0700 Subject: [PATCH] formats long lines for walk_functions --- synapseutils/walk_functions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/synapseutils/walk_functions.py b/synapseutils/walk_functions.py index 66af41b47..35fa0c8d8 100644 --- a/synapseutils/walk_functions.py +++ b/synapseutils/walk_functions.py @@ -20,7 +20,8 @@ def walk( ], ): """ - Traverse through the hierarchy of files and folders stored under the synId. Has the same behavior as os.walk() + Traverse through the hierarchy of files and folders stored under the synId. + Has the same behavior as os.walk() Arguments: syn: A Synapse object with user's login, e.g. syn = synapseclient.login() @@ -57,8 +58,8 @@ def _helpWalk( syn: A synapse object: syn = synapseclient.login()- Must be logged into synapse synId: A synapse ID of a folder or project includeTypes: Must be a list of entity types (ie. ["file", "table"]) which can be found here: - http://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/EntityType.html - The "folder" type is always included so the hierarchy can be traversed + http://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/EntityType.html + The "folder" type is always included so the hierarchy can be traversed newpath: The directory path of the listed files """ starting = syn.get(synId, downloadFile=False)