Closed g8up closed 3 years ago
Hello @g8up, this is interesting.
Did you try with D:\myfile
(forward slash rather than backward's)?
{
"interface": "以太网",
"port": 9999,
"keepAlive": true,
"path": "D:\myfile",
"secure": false,
"tls-key": "",
"tls-cert": ""
}
C:\Users\Administrator>qrcp receive
Error: invalid character 'm' in string escape code
Run `qrcp help` for help.
{
"interface": "以太网",
"port": 9999,
"keepAlive": true,
"path": "D:\\myfile",
"secure": false,
"tls-key": "",
"tls-cert": ""
}
C:\Users\Administrator>qrcp receive
Scan the following URL with a QR reader to start the file transfer:
http://192.168.3.46:9999/receive/D:\myfile
(qrcode img)
I got a 404 page not found
after scanning on mobile phone.
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
I'm opening this issue because:
[ ] I have found a bug
[ ] I want to request a feature
[x] I have a question
[ ] Other
My Go version is: go version go1.11.2 windows/amd64
My GOPATH is set to: D:\go-path
I have set the config
path
asd:/myfile
,but the file is still saved atC:\Users\Administrator
。