mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
increase buffer
This commit is contained in:
parent
9cf6bdf4a8
commit
54b22cd732
3 changed files with 7 additions and 5 deletions
4
main.go
4
main.go
|
@ -144,6 +144,8 @@ func send(c *cli.Context) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fname, _ = filepath.Abs(fname)
|
||||
fname = filepath.Clean(fname)
|
||||
_, filename := filepath.Split(fname)
|
||||
fileOrFolder := "file"
|
||||
fsize := finfo.Size()
|
||||
|
@ -155,7 +157,7 @@ func send(c *cli.Context) error {
|
|||
}
|
||||
}
|
||||
fmt.Fprintf(os.Stderr,
|
||||
"Sending %s %s name '%s'\nCode is: %s\nOn the other computer, please run:\n\ncroc %s\n\n",
|
||||
"Sending %s %s named '%s'\nCode is: %s\nOn the other computer, please run:\n\ncroc %s\n\n",
|
||||
humanize.Bytes(uint64(fsize)),
|
||||
fileOrFolder,
|
||||
filename,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue