mirror of https://github.com/perkeep/perkeep.git
Merge "camget: actually check size of file on server"
This commit is contained in:
commit
d7e5128bbe
|
@ -269,11 +269,11 @@ func smartFetch(src blob.Fetcher, targ string, br blob.Ref) error {
|
||||||
|
|
||||||
name := filepath.Join(targ, b.FileName())
|
name := filepath.Join(targ, b.FileName())
|
||||||
|
|
||||||
if fi, err := os.Stat(name); err == nil && fi.Size() == fi.Size() {
|
if fi, err := os.Stat(name); err == nil && fi.Size() == fr.Size() {
|
||||||
if *flagVerbose {
|
if *flagVerbose {
|
||||||
log.Printf("Skipping %s; already exists.", name)
|
log.Printf("Skipping %s; already exists.", name)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if *flagVerbose {
|
if *flagVerbose {
|
||||||
|
|
Loading…
Reference in New Issue