Closed Kianoosh76 closed 3 years ago
Its definitely far from obvious with no examples...I finally figure this out for my scenario to set the modified time:
stat.st_mtim.tv_nsec.set(System.currentTimeMillis()); stat.st_mtim.tv_sec.set((System.currentTimeMillis() / 1000L));
Thanks!
Yes that worked fine. The problem was that in my linux system birth_time
was always null. It does not show that for regular files either
Hi!
I was following your examples for the
getattr
implementation. But when it comes to theTimespec
fields, it won't work anymoreHere's the code:
I couldn't find any documentation about how to instantiate the
Timespec
fields. Could you provide some hint?