davidchalifoux / kaput-cli

The unofficial CLI client for Put.io - Kaput lets you manage your Put.io account from the comfort of your terminal!
https://kaput.sh/
MIT License
68 stars 7 forks source link

Download fails with invalid file system characters #58

Closed kylepmanuel closed 1 month ago

kylepmanuel commented 1 month ago

Attempted to download a file using new -r recursive.

thread 'main' panicked at src/put/files.rs:202:64:
creating directory: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }

Simple workaround, rename the file/directory in put.io. In my case, it was ':'

davidchalifoux commented 1 month ago

Oh I see, It's because there was an illegal character in the file name. To fix this we need to check for and replace illegal characters in file names.

davidchalifoux commented 1 month ago

This should be fixed now in v2.4.2. Common illegal characters are now replaced by default, but this can be disabled with the --no-replace flag.

Let me know if you run into any other cases of this.