mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
fix upload file no permission error for sync #188
This commit is contained in:
parent
9db89a64b0
commit
5f6cdcab64
@ -364,6 +364,9 @@ func (f *FileActionTask) uploadFile(ctx context.Context) error {
|
||||
err := localFile.OpenPath()
|
||||
if err != nil {
|
||||
logger.Verbosef("文件不可读 %s, 错误信息: %s\n", localFile.Path, err)
|
||||
f.syncItem.Status = SyncFileStatusFailed
|
||||
f.syncItem.StatusUpdateTime = utils.NowTimeStr()
|
||||
f.syncFileDb.Update(f.syncItem)
|
||||
return err
|
||||
}
|
||||
defer localFile.Close() // 关闭文件
|
||||
|
Loading…
Reference in New Issue
Block a user