Is there a way to change file metadata using Okio?...
# squarelibraries
g
Is there a way to change file metadata using Okio? If possible, I'd like to do it FakeFileSystem
🚫 1
j
What metadata in particular?
g
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
Yeah, use a FakeClock that advances 1 second when the time is requested