mirror of
https://github.com/9001/copyparty.git
synced 2025-11-05 06:13:20 +00:00
avoid macos bug (finder hangs on connect)
This commit is contained in:
@@ -1599,6 +1599,10 @@ class HttpCli(object):
|
|||||||
"quota-available-bytes": str(bfree),
|
"quota-available-bytes": str(bfree),
|
||||||
"quota-used-bytes": str(btot - bfree),
|
"quota-used-bytes": str(btot - bfree),
|
||||||
}
|
}
|
||||||
|
if "quotaused" in props: # macos finder crazytalk
|
||||||
|
df["quotaused"] = df["quota-used-bytes"]
|
||||||
|
if "quota" in props:
|
||||||
|
df["quota"] = df["quota-available-bytes"] # idk, makes it happy
|
||||||
else:
|
else:
|
||||||
df = {}
|
df = {}
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user