adding --no-hash

This commit is contained in:
ed
2021-06-10 18:08:30 +02:00
parent d6bf300d80
commit 1078d933b4
9 changed files with 77 additions and 39 deletions

View File

@@ -38,6 +38,7 @@ class Cfg(Namespace):
mtp=[],
mte="a",
hist=None,
no_hash=False,
**{k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()}
)

View File

@@ -18,7 +18,7 @@ from copyparty import util
class Cfg(Namespace):
def __init__(self, a=[], v=[], c=None):
ex = {k: False for k in "e2d e2ds e2dsa e2t e2ts e2tsr".split()}
ex2 = {"mtp": [], "mte": "a", "hist": None}
ex2 = {"mtp": [], "mte": "a", "hist": None, "no_hash": False}
ex.update(ex2)
super(Cfg, self).__init__(a=a, v=v, c=c, **ex)

View File

@@ -60,7 +60,7 @@ def get_ramdisk():
if os.path.exists("/Volumes"):
# hdiutil eject /Volumes/cptd/
devname, _ = chkcmd("hdiutil", "attach", "-nomount", "ram://65536")
devname, _ = chkcmd("hdiutil", "attach", "-nomount", "ram://131072")
devname = devname.strip()
print("devname: [{}]".format(devname))
for _ in range(10):