Import std.io.vfs
EmbeddedSource
class
Public Class EmbeddedSource Implements VfsSource
Files a program has in memory as a source, by their paths, like what EmbedFolder gives: each key is a file's path, with '/' (or '') between folders, and the folders are the ones the paths go through. It keeps the arrays it's given, and a read gives a copy of a file's bytes.
-
A source of
files, by their paths. Panics for a path that isn't a file's, one that goes above the root or has no names once its "."s and ".."s are taken out, like "", ".", or "a/..", and for paths that make one place a file and a folder too. -
A copy of the bytes of the file at
path, or Null when it has none there. -
Whether
pathis a file or a folder, as the files' paths make it, or Null when it's neither. -
The names in the folder at
path, each with whether it's a file or a folder, or Null when there's no folder there.
Report an issue with this page or with FutureBlitz on GitHub.