Is there a way to change file metadata using Okio? If possible, I'd like to do it FakeFileSystem
đźš« 1
j
jessewilson
12/14/2022, 11:02 PM
What metadata in particular?
g
Gabriel Feo
12/15/2022, 11:51 AM
Modification time. However I could solve my problem by passing a fake Clock to FakeFileSystem
My use case was to prevent flakiness in a test of a class that should return the last N modified files, which are set up before the test. Using a real Clock most would get created at the same “Instant”
j
jessewilson
12/16/2022, 11:26 AM
Yeah, use a FakeClock that advances 1 second when the time is requested