Skip to content

Commit e4918fe

Browse files
author
Paul Sokolovsky
committed
webrepl_cli.py: Allow empty target name to mean default (root) dir.
E.g. webrepl_cli.py foo.txt 192.168.4.1:
1 parent 21bd07f commit e4918fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webrepl_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def error(msg):
142142

143143
def parse_remote(remote):
144144
host, fname = remote.rsplit(":", 1)
145+
if fname = "":
146+
fname = "/"
145147
port = 8266
146148
if ":" in host:
147149
host, port = remote.split(":")

0 commit comments

Comments
 (0)