claudiodangelis / qrcp

:zap: Transfer files over wifi from your computer to your mobile device by scanning a QR code without leaving the terminal.
https://qrcp.sh
MIT License
9.84k stars 523 forks source link

How to set path for windows? #186

Closed g8up closed 3 years ago

g8up commented 3 years ago

I'm opening this issue because:

I have set the config path as d:/myfile,but the file is still saved at C:\Users\Administrator

claudiodangelis commented 3 years ago

Hello @g8up, this is interesting. Did you try with D:\myfile (forward slash rather than backward's)?

g8up commented 3 years ago

Case 1

Case 2

claudiodangelis commented 3 years ago

Hello, I believe there is some confusion here. The "path" in the configuration file is not the path where the files are downloaded. At this time you can only specify it by using the -o or --output flag, for example:

qrcp receive --output "D:"

or

cd D:
qrcp receive

If you don't specify the output directory, the current directory is chosen. There is an open pull request about introducing a "default output" directory, but that's still a work in progress: https://github.com/claudiodangelis/qrcp/pull/183 Hope this clears things up, thanks! Claudio