mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
check if file exists
This commit is contained in:
parent
669aeb377a
commit
7ac7be37af
1 changed files with 1 additions and 1 deletions
|
@ -1239,10 +1239,10 @@ func (c *Client) updateIfRecipientHasFileInfo() (err error) {
|
||||||
if _, ok := c.FilesHasFinished[i]; ok {
|
if _, ok := c.FilesHasFinished[i]; ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Debugf("checking %+v", fileInfo)
|
|
||||||
if i < c.FilesToTransferCurrentNum {
|
if i < c.FilesToTransferCurrentNum {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
log.Debugf("checking %+v", fileInfo)
|
||||||
recipientFileInfo, errRecipientFile := os.Lstat(path.Join(fileInfo.FolderRemote, fileInfo.Name))
|
recipientFileInfo, errRecipientFile := os.Lstat(path.Join(fileInfo.FolderRemote, fileInfo.Name))
|
||||||
var errHash error
|
var errHash error
|
||||||
var fileHash []byte
|
var fileHash []byte
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue