mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
thx osx
This commit is contained in:
parent
600e9ac947
commit
62df0a0eb2
|
@ -66,6 +66,9 @@ def get_ramdisk():
|
||||||
for _ in range(10):
|
for _ in range(10):
|
||||||
try:
|
try:
|
||||||
_, _ = chkcmd("diskutil", "eraseVolume", "HFS+", "cptd", devname)
|
_, _ = chkcmd("diskutil", "eraseVolume", "HFS+", "cptd", devname)
|
||||||
|
with open("/Volumes/cptd/.metadata_never_index", "w") as f:
|
||||||
|
f.write("orz")
|
||||||
|
|
||||||
return subdir("/Volumes/cptd")
|
return subdir("/Volumes/cptd")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(repr(ex))
|
print(repr(ex))
|
||||||
|
|
Loading…
Reference in a new issue