Skip to content

Commit 0b466e8

Browse files
committed
Remove unused ls_ssh()
Added but unused in b63dc24
1 parent d1f8804 commit 0b466e8

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

windows-release/merge-and-upload.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,6 @@ def download_ssh(source, dest):
113113
_run(*_std_args(PSCP), f"{UPLOAD_USER}@{UPLOAD_HOST}:{source}", dest)
114114

115115

116-
def ls_ssh(dest):
117-
if not UPLOAD_HOST or LOCAL_INDEX:
118-
print("Skipping ls of", dest, "because UPLOAD_HOST is missing")
119-
return
120-
try:
121-
_run(*_std_args(PSCP), "-ls", f"{UPLOAD_USER}@{UPLOAD_HOST}:{dest}")
122-
except RunError as ex:
123-
if not ex.args[1].rstrip().endswith("No such file or directory"):
124-
raise
125-
print(dest, "was not found")
126-
127-
128116
def url2path(url):
129117
if not UPLOAD_URL_PREFIX:
130118
raise ValueError("%UPLOAD_URL_PREFIX% was not set")

0 commit comments

Comments
 (0)