Open SteeveDess opened 3 years ago
This would involve creating a new repository type in storage/repository
, possibly something like TimableRepository
, as well as the corresponding successor methods in storage
. To implement this on file://
URIs, an implementation would need to be defined in internal/repository
along with the other file://
repositories.
You can implement this now on your own if you want. You can just create your own repository type for file://
(the one in internal/repository may be a good start) which also implements your new time-handling methods in addition to the standard ones. A more detailed narrative description of how this works is here. As long as your repository complies with the necessary interfaces, Fyne's internal APIs will be happy to shuttle around your thus-augmented URIs, though of course it won't be aware of the additional methods.
I wanted to open the last image created in a folder. Andrew suggested to use storage and uri to be compatible cross platform. I tried, but I faced the reality, storage package don't give access to the creation et modification date/time. confirmed by Andrew. He asked to create an issue about it.