1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

increase buffer

This commit is contained in:
Zack Scholl 2018-09-22 07:15:43 -07:00
parent 9cf6bdf4a8
commit 54b22cd732
3 changed files with 7 additions and 5 deletions

View file

@ -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,