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
Link to original bug (#671518)
Description
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
-
run "file_monitor_test.sh"
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":
0001-add-filemonitor-test.patch
Version: 2.31.x