Closed parasiteoflife closed 4 months ago
thanks, didn't notice that the behavior for these options is so unintuitive -- I'll improve the helptext and documentation for the next ver :>
as for df
, the syntax is different depending on whether you're setting it globally or for just one volume. Inside the [global]
section it does not expect any suffix at all, just a number, which is always in gigabytes. But when setting it as a volflag, then it does expect a suffix. I think a better behavior would be to assume gigabytes if there is no suffix, and maybe also support a suffix for the global section too. I'll think about it.
as for gz
, davrt
, and vmaxb
, these are volume-flags (as they are listed in --help-flags
), but according to --help
there is a way to set davrt
globally, but the global flag is named dav-rt
. This might be easier to see in the online copy of the helptext: https://ocv.me/copyparty/helptext.html
for reference, volume flags are set like this:
[/music]
/srv/media
accs:
[...your permission setup...]
flags:
df: 128m
please ask if anything's unclear!
Describe the bug I've added
df:
to my config file but it won't load unless I only use a decimal number and nothing else, these don't work:Also, I can't use neither of these?
copyparty: error: unrecognized arguments: --gz --davrt --vmaxb=100.0g