summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-07-16 13:10:16 -0400
committerGlenn Smith <glenn@vector35.com>2024-07-16 13:10:16 -0400
commit2623732719499315844444663243176709658784 (patch)
tree9ca381b2ad255c8ef5662aa3ca2da645ba79fa6e /python
parentc473dc8bbe0b224f59a0fe1b8cbde2cd67d083af (diff)
Update api usage in the other collaboration examples
Diffstat (limited to 'python')
-rw-r--r--python/collaboration/examples/download_everything.py2
-rw-r--r--python/collaboration/examples/multitool.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/collaboration/examples/download_everything.py b/python/collaboration/examples/download_everything.py
index a3f908aa..8740fca3 100644
--- a/python/collaboration/examples/download_everything.py
+++ b/python/collaboration/examples/download_everything.py
@@ -40,7 +40,7 @@ def main():
# Pull every file from every project
for project in remote.projects:
for file in project.files:
- bndb_path = file.default_bndb_path
+ bndb_path = file.default_path
print(f"{project.name}/{file.name} BNDB at {bndb_path}")
try:
diff --git a/python/collaboration/examples/multitool.py b/python/collaboration/examples/multitool.py
index e2ea3360..f5b9ea22 100644
--- a/python/collaboration/examples/multitool.py
+++ b/python/collaboration/examples/multitool.py
@@ -80,7 +80,7 @@ def print_file_info(file: RemoteFile, extended=False):
f"Last snapshot date: {file.last_snapshot}\n"
f"Contents hash: {file.hash}\n"
f"Contents size: {file.size}\n"
- f"Default path on disk: {file.default_bndb_path}\n"
+ f"Default path on disk: {file.default_path}\n"
f"Snapshot count: {len(file.snapshots)}")
else:
print(f"{file.remote.name}/{file.project.name}/{file.name} @ {file.url} (id: {file.id})")