File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,9 @@ func mapRemoteFilesByID(syncFiles map[string]*syncFile) map[int64]*syncFile {
261261 m := make (map [int64 ]* syncFile , len (syncFiles ))
262262 for _ , sf := range syncFiles {
263263 if sf .remote != nil {
264- m [sf .remote .PutioFile ().ID ] = sf
264+ if ! sf .remote .Info ().IsDir () {
265+ m [sf .remote .PutioFile ().ID ] = sf
266+ }
265267 }
266268 }
267269 return m
@@ -271,12 +273,14 @@ func mapLocalFilesByInode(syncFiles map[string]*syncFile) map[uint64]*syncFile {
271273 m := make (map [uint64 ]* syncFile , len (syncFiles ))
272274 for _ , sf := range syncFiles {
273275 if sf .local != nil {
274- in , err := inode .Get (sf .local .FullPath (), sf .local .Info ())
275- if err != nil {
276- log .Error (err )
277- continue
276+ if ! sf .local .Info ().IsDir () {
277+ in , err := inode .Get (sf .local .FullPath (), sf .local .Info ())
278+ if err != nil {
279+ log .Error (err )
280+ continue
281+ }
282+ m [in ] = sf
278283 }
279- m [in ] = sf
280284 }
281285 }
282286 return m
You can’t perform that action at this time.
0 commit comments