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
-
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.java
as implemented by the standard library.AmazeFile
class that provide all basic interactions for files, it contains a reference to a singleton deriving fromAmazeFileSystem
that provides all basic operations on files specific to Amaze.AmazeFile
is uniquely determined based on a path. It has no cached information and it is parcelable.AmazeFileSystem
is 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