n0-computer / sendme

A tool to send files and directories, based on iroh
Other
96 stars 6 forks source link

Output filename is confusing when it contains spaces #7

Closed flub closed 10 months ago

flub commented 10 months ago

When the filename contains spaces the output looks confusing:

...
getting collection abc123
downloading to some file where does the filename start.txt

I'm not sure what the right solution is here. Maybe it's as simple as adding a semicolon: downloading to: filename with spaces.txt.

Maybe it should be quoted if it contains spaces: downloading to filename.txt downloading to "file name.txt"

Maybe it should use something full-blown like https://lib.rs/crates/shell-quote

rklaehn commented 10 months ago

Went with the first option for now.