ModelFileSystem backed by java.io / java.nio (Android API 26+ and JVM desktop).
java.io
java.nio
Moves source to target, replacing target. Atomic when both are on the same volume, so readers never see a partially written target.
Creates path and any missing parent directories.
Deletes the file at path. Returns false if it did not exist.
false
Whether a file or directory exists at path.
Last modification time in epoch milliseconds, or 0 if unknown.
0
Names (not paths) of the regular files directly inside directory; empty if it does not exist.
Opens path for appending, creating it if needed; with truncate it is emptied first.
Opens path for random-access reading.
Size of the regular file at path in bytes, or -1 if it does not exist.
-1