GVfs/GIO doesn't offer a way to sync a drive
Submitted by ras..@..ft.com
Assigned to gvf..@..e.bugs
Link to original bug (#590554)
Description
In some cases is important to guarantee that a file/folder has been physically stored in the drive, so a kind of SYNC is needed. I propose something like
gboolean g_file_sync (GFile *file, GCancellable *cancellable, GError **error);
This method will send a sync to the drive/computer where FILE is. If it's a local file, it will do a sync in the local computer; if it's a remote computer, will try to do a sync there if possible. The error value must include a NO_SUPPORTED value to allow the application to know if it failed because it's impossible.