| 70 | print(f"{project.remote.name}/{project.name} @ {project.url} (id: {project.id})") |
| 71 | |
| 72 | def print_file_info(file: RemoteFile, extended=False): |
| 73 | if extended: |
| 74 | print(f"Name: {file.name}\n" |
| 75 | f"Description: {file.description}\n" |
| 76 | f"Id: {file.id}\n" |
| 77 | f"Url: {file.url}\n" |
| 78 | f"Created date: {file.created}\n" |
| 79 | f"Last modified date: {file.last_modified}\n" |
| 80 | f"Last snapshot date: {file.last_snapshot}\n" |
| 81 | f"Contents hash: {file.hash}\n" |
| 82 | f"Contents size: {file.size}\n" |
| 83 | f"Default path on disk: {file.default_path}\n" |
| 84 | f"Snapshot count: {len(file.snapshots)}") |
| 85 | else: |
| 86 | print(f"{file.remote.name}/{file.project.name}/{file.name} @ {file.url} (id: {file.id})") |
| 87 | |
| 88 | |
| 89 | def main(): |