GFileInfo: unable to retrieve correct modification time of links and mounted volumes on Windows
Using g_file_query_info (GLib 2.54) on Windows to retrieve the modification time of a mounted volume (with mountvol) produces a timestamp different than the one reported by the Windows's file manager and than the dir command's output. The same behavior can be noticed with soft links and junctions (created with mklink). In addition we noticed that the g_file_info_get_is_symlink is always FALSE.
For example, using the dir command (and Windows's file manager) we have:
2018-07-11 18:32 <JUNCTION> log_j [C:\log]
2018-07-11 18:26 <SYMLINKD> log_s [C:\log]
2018-07-16 11:54 <JUNCTION> mount [\??\Volume{73ed44fd-0000-0000-0000-100000000000}\]
Using GLIB we have:
Folder: log_j
- IsSymlink: 0
- Time Modification (1531818676): 2018-07-17T09:11:16Z
- Time Access (1531818676): 2018-07-17T09:11:16Z
- Time Creation (0): 1970-01-01T00:00:00Z
- Time Changed (1524034790): 2018-04-18T06:59:50Z
Folder: log_s
- IsSymlink: 0
- Time Modification (1531818676): 2018-07-17T09:11:16Z
- Time Access (1531818676): 2018-07-17T09:11:16Z
- Time Creation (0): 1970-01-01T00:00:00Z
- Time Changed (1524034790): 2018-04-18T06:59:50Z
Folder: mount
- IsSymlink: 0
- Time Modification (1531379548): 2018-07-12T07:12:28Z
- Time Access (1531379548): 2018-07-12T07:12:28Z
- Time Creation (0): 1970-01-01T00:00:00Z
- Time Changed (1523537565): 2018-04-12T12:52:45Z