Skip to content

Commit

Permalink
Fix file not found error check
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Jun 27, 2022
1 parent b669263 commit 73fc57b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions commons/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ func (manager *ParallelTransferManager) ScheduleUploadIfDifferent(filesystem *ir
manager.errors.PushBack(err)
return
}

logger.Debugf("there is no file %s at remote", target)
} else {
// file/dir exists
if targetEntry.Type == irodsclient_fs.DirectoryEntry {
Expand Down Expand Up @@ -422,7 +420,7 @@ func (manager *ParallelTransferManager) ScheduleCopyIfDifferent(filesystem *irod

targetEntry, err := filesystem.Stat(target)
if err != nil {
if !os.IsNotExist(err) {
if !irodsclient_types.IsFileNotFoundError(err) {
manager.mutex.Lock()
defer manager.mutex.Unlock()

Expand Down

0 comments on commit 73fc57b

Please sign in to comment.