# Functions
FileWrite attempts to write to an fs.File provided it supports io.Writer.
IsOS returns true if the provided FS implementation is a wrapper around OS access obtained via OS().
OS implements fs.FS as if calls were being made directly via the os package, with which relative paths are resolved from the directory the process is executed from.
ReadFile opens a file with the RDONLY flag and returns all bytes from it.
ToHTTP converts an fs.FS into an http.FileSystem in a way that doesn't modify the root path.
WriteFile opens a file with O_WRONLY|O_CREATE|O_TRUNC flags and writes the data to it.
# Interfaces
FS is a superset of fs.FS that includes goodies that benthos components specifically need.