mirror of
https://github.com/schollz/croc.git
synced 2025-01-06 05:13:02 +03:00
fix bug
This commit is contained in:
parent
f4d607a4cf
commit
51f3de95a7
@ -14,13 +14,18 @@ func promptCodePhrase() string {
|
||||
}
|
||||
|
||||
func promptOkayToRecieve(f FileMetaData) (ok bool) {
|
||||
overwritingOrReceiving := "Receiving"
|
||||
if exists(f.Name) {
|
||||
overwritingOrReceiving = "Overwriting"
|
||||
}
|
||||
fileOrFolder := "file"
|
||||
if f.IsDir {
|
||||
fileOrFolder = "folder"
|
||||
}
|
||||
return "y" == getInput(fmt.Sprintf(
|
||||
`Receiving %s (%s) into: %s
|
||||
`%s %s (%s) into: %s
|
||||
ok? (y/N): `,
|
||||
overwritingOrReceiving,
|
||||
fileOrFolder,
|
||||
humanize.Bytes(uint64(f.Size)),
|
||||
f.Name,
|
||||
|
Loading…
Reference in New Issue
Block a user