If the interval between missing directory creation and file creation under the directory is short, gfilemonitor cannot get the create event of file under the directory.
Submitted by changbin
Created attachment 209127 0001-add-filemonitor-test.patch, a test patch for glib, to detect the file changes of a missing directory
Create a gfilemonitor testcase, in order to detect the file changes of a missing directory. a) add patch "0001-add-filemonitor-test.patch" for glib package, based on commit number "6e8caec6" b) build glib package c) run glib/gio/tests/testgfilemonitor.
copy "file_monitor_test.sh" & "file_monitor_test.sh" under /tmp
Filemonitor gets create event of missing directory, but cannot get the create event of files under this directory.
Patch 209127, "0001-add-filemonitor-test.patch, a test patch for glib, to detect the file changes of a missing directory":