New file mechanism #3077
EmmanuelMess
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal for new implementation of new internal file mechanism
Rationale
This would make adding new file types more modular, and have a simple interface. This is a replacement for HybridFile.
Implementation
Similar to
File.javaas implemented by the standard library.AmazeFileclass that provide all basic interactions for files, it contains a reference to a singleton deriving fromAmazeFileSystemthat provides all basic operations on files specific to Amaze.AmazeFileis uniquely determined based on a path. It has no cached information and it is parcelable.AmazeFileSystemis an abstract class that provides all most basic operations for files. There is one subclass per AmazeFile.Example
See here for an initial implementation: ec53f26
Beta Was this translation helpful? Give feedback.
All reactions