mirror of https://github.com/schollz/croc.git
show code
This commit is contained in:
parent
6e69b2760e
commit
901b0af827
|
@ -194,6 +194,7 @@ func (c *Connection) Run() error {
|
||||||
if c.Code == "" {
|
if c.Code == "" {
|
||||||
c.Code = GetRandomName()
|
c.Code = GetRandomName()
|
||||||
}
|
}
|
||||||
|
fmt.Fprintf(os.Stderr, "Code is '%s'\n", c.Code)
|
||||||
if c.File.IsDir {
|
if c.File.IsDir {
|
||||||
fmt.Fprintf(os.Stderr, "Sending %s folder named '%s'\n", humanize.Bytes(uint64(c.File.Size)), c.File.Name[:len(c.File.Name)-4])
|
fmt.Fprintf(os.Stderr, "Sending %s folder named '%s'\n", humanize.Bytes(uint64(c.File.Size)), c.File.Name[:len(c.File.Name)-4])
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue