Documentation ¶
Overview ¶
Package fs implements a non-hierarchical file store using the underlying (disk) file system.
A file store contains directories named after UUIDs, each containing the following files:
name the file name (``basename'') type the file's MIME type data the file data
This is not meant for anything for which the word “scale” plays any role at all, ever, anywhere.
TODO: should io/fs ever support writable file systems, use one of those instead of the “disk” (os.Open & Co.) (see https://github.com/golang/go/issues/45757)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct { // Root is the path of the file store, relative to the process's working // directory or absolute. Root string }
FS is an on-disk file store.
func (*FS) Check ¶
Check checks whether the file store is operable, ie. whether fs.Root exists and is a directory.
type FileInfo ¶
func (FileInfo) ContentType ¶
Click to show internal directories.
Click to hide internal directories.