- fd = g_new0(FileData, 1);
- /* path and name must be non NULL, so make them an invalid filename */
- fd->path = g_strdup("//");
- fd->name = path;
+ /*
+ * Create a FileData entry that represents the given day.
+ * It does not correspond to any real file
+ */
+
+ g_snprintf(fake_path, sizeof(fake_path), "//%04d-%02d-%02d", year, month, day);
+ fd = file_data_new_no_grouping(fake_path);