handle if the file is zero bytes
This commit is contained in:
parent
ba00eda176
commit
fe1329c909
|
|
@ -668,6 +668,10 @@ func (c *Client) updateState() (err error) {
|
|||
continue
|
||||
}
|
||||
fileHash, errHash := utils.HashFile(path.Join(fileInfo.FolderRemote, fileInfo.Name))
|
||||
if fileInfo.Size == 0 {
|
||||
log.Debugf("touching file with folder / name")
|
||||
continue
|
||||
}
|
||||
log.Debugf("%s %+x %+x %+v", fileInfo.Name, fileHash, fileInfo.Hash, errHash)
|
||||
if errHash != nil || !bytes.Equal(fileHash, fileInfo.Hash) {
|
||||
if errHash != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue