file monitor on the root directory



Hello,

I'm trying to do a file monitor on the root directory /.

My current code is :

  file = g_file_new_for_path(path);

  monitor = g_file_monitor(file, G_FILE_MONITOR_NONE, NULL, &error);
  g_object_unref(file);
  if (error)
    {
      g_error_free(error);
      error = NULL;

      return FALSE;
    }

But with "/" for path string, no events are catched. With "//", it
works. Is it normal ?

Thanks for your help.

-- 
Boris HUISGEN



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]