File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -596,6 +596,9 @@ def _tryMovePendingWatchedFiles(self):
596596 if not os .path .exists (pendingWatchedMove ):
597597 self ._pendingWatchedMoves .remove (pendingWatchedMove )
598598 continue
599+ if not utils .canMarkAsWatched (pendingWatchedMove ):
600+ self ._pendingWatchedMoves .remove (pendingWatchedMove )
601+ continue
599602 originalDir = os .path .dirname (pendingWatchedMove )
600603 watchedDir = utils .getWatchedSubfolder (originalDir )
601604 utils .createWatchedSubdirIfNeeded (watchedDir )
Original file line number Diff line number Diff line change @@ -555,7 +555,10 @@ def getCorrectedPathForFile(filePath):
555555 correctedDirectory = getCorrectedDirectoryForFile (filePath )
556556 filename = os .path .basename (filePath )
557557 correctedPath = os .path .join (correctedDirectory , filename )
558- return correctedPath
558+ if os .path .isfile (correctedPath ):
559+ return correctedPath
560+ else :
561+ return filePath
559562
560563def isWatchedSubfolder (directoryPath ):
561564 if not directoryPath :
You can’t perform that action at this time.
0 commit comments