Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid float value #.#g | #g | # #83

Closed
parasiteoflife opened this issue May 24, 2024 · 1 comment
Closed

Invalid float value #.#g | #g | # #83

parasiteoflife opened this issue May 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@parasiteoflife
Copy link

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:

df: 4.0g
df: 4g
df: 4

Also, I can't use neither of these?
copyparty: error: unrecognized arguments: --gz --davrt --vmaxb=100.0g

@parasiteoflife parasiteoflife added the bug Something isn't working label May 24, 2024
@9001
Copy link
Owner

9001 commented May 24, 2024

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!

@9001 9001 closed this as completed in 5ad6545 Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants