check if file exists

This commit is contained in:
Zack Scholl 2021-04-20 15:36:46 -07:00
parent 669aeb377a
commit 7ac7be37af
1 changed files with 1 additions and 1 deletions

View File

@ -1239,10 +1239,10 @@ func (c *Client) updateIfRecipientHasFileInfo() (err error) {
if _, ok := c.FilesHasFinished[i]; ok {
continue
}
log.Debugf("checking %+v", fileInfo)
if i < c.FilesToTransferCurrentNum {
continue
}
log.Debugf("checking %+v", fileInfo)
recipientFileInfo, errRecipientFile := os.Lstat(path.Join(fileInfo.FolderRemote, fileInfo.Name))
var errHash error
var fileHash []byte