From: Philip L. <ph...@ov...> - 2017-12-20 04:27:14
|
On Mon, 11 Dec 2017 12:54:52 +0000 Alistair Buxton <a.j...@gm...> wrote: > On 11 December 2017 at 02:26, Philip Langdale <ph...@ov...> > wrote: > > > They are not part of the core spec, so would not be documented > > there. I never found any documentation for them - I used: > > > > https://github.com/hanwen/go-mtpfs > > > > as my reference as this was written by a Googler who understood how > > the extensions worked. > > > > --phil > > Okay, thanks. > > I've implemented everything now and it all seems to work, but I'm > hitting timestamp problems. > > Basically when I save a text file from my editor it checks the > timestamp after writing, but gvfs does not update the timestamp until > the file is closed. This causes the editor to produce spurious "file > externally modified" warnings. > > Is this expected behaviour? Should the editor deal with it? > > This is more of a gvfs question, is there a more appropriate mailing > list for that? > The modified time of the file is set on the device side (in this case, your code). gvfs does not directly modify any file attributes like the modification time - that's the device's responsibility. --phil |