WIP Fix #1231
Should fully fix #1231 (closed).
Some simplifying refactoring was done to the file-monitor callback code.
Edited by Amrit Kashyap Borah
Should fully fix #1231 (closed).
Some simplifying refactoring was done to the file-monitor callback code.