This commit is contained in:
Jeroen van Rijn
2024-06-04 00:22:49 +02:00
parent 17225131f7
commit f745a1c470
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ def main():
files_by_date = {}
bucket = sys.argv[1]
files_lines = execute_cli(f"b2 ls --long {bucket} nightly").split("\n")
files_lines = execute_cli(f"b2 ls --long b2://{bucket}/nightly/").split("\n")
for x in files_lines:
parts = x.split(" ", 1)
if parts[0]:

View File

@@ -11,7 +11,7 @@ def main():
days_to_keep = int(sys.argv[2])
print(f"Looking for binaries to delete older than {days_to_keep} days")
files_lines = execute_cli(f"b2 ls --long --versions {bucket}/nightly").split("\n")
files_lines = execute_cli(f"b2 ls --long --versions b2://{bucket}/nightly/").split("\n")
print(files_lines)
for x in files_lines:
parts = [y for y in x.split(' ') if y]