Skip to content

Commit 998c16e

Browse files
committed
Fixes for issue #181.
1 parent 7acb481 commit 998c16e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/efsw/WatcherFSEvents.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ void WatcherFSEvents::handleActions( std::vector<FSEvent>& events ) {
142142

143143
if ( event.Path != nEvent.Path ) {
144144
if ( dirPath == newDir ) {
145-
if ( !FileInfo::exists( event.Path ) ) {
145+
if ( !FileInfo::exists( event.Path ) ||
146+
0 == strcasecmp( event.Path.c_str(), nEvent.Path.c_str() ) ) {
146147
sendFileAction( ID, dirPath, newFilepath, Actions::Moved,
147148
filePath );
148149
} else {

0 commit comments

Comments
 (0)