Skip to content

Commit

Permalink
Add call to FileSystem::precomposeFileName for oldFilename on sendFil…
Browse files Browse the repository at this point in the history
…eAction @ WatcherFSEvents.cpp

Perform the same operation (FileSystem::precomposeFileName) on oldFilename as on dir and filename in order to get the same result when handling any file action, especially file renaming using accents.
  • Loading branch information
javigmateos authored Sep 12, 2023
1 parent bc4eac3 commit e0e3af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/efsw/WatcherFSEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void WatcherFSEvents::sendFileAction( WatchID watchid, const std::string& dir,
const std::string& filename, Action action,
std::string oldFilename ) {
Listener->handleFileAction( watchid, FileSystem::precomposeFileName( dir ),
FileSystem::precomposeFileName( filename ), action, oldFilename );
FileSystem::precomposeFileName( filename ), action, FileSystem::precomposeFileName( oldFilename ) );
}

void WatcherFSEvents::handleAddModDel( const Uint32& flags, const std::string& path,
Expand Down

0 comments on commit e0e3af4

Please sign in to comment.