mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
fuse-client: password from file
This commit is contained in:
parent
0696610dee
commit
46b6abde3f
|
@ -1008,6 +1008,12 @@ def main():
|
||||||
log = null_log
|
log = null_log
|
||||||
dbg = null_log
|
dbg = null_log
|
||||||
|
|
||||||
|
if ar.a and ar.a.startswith("$"):
|
||||||
|
fn = ar.a[1:]
|
||||||
|
log("reading password from file [{}]".format(fn))
|
||||||
|
with open(fn, "rb") as f:
|
||||||
|
ar.a = f.read().decode("utf-8").strip()
|
||||||
|
|
||||||
if WINDOWS:
|
if WINDOWS:
|
||||||
os.system("rem")
|
os.system("rem")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue