filefs

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 4 Imported by: 6

Documentation

Overview

Package filefs wraps os.DirFS to provide a local filesystem for file:// URLs.

Index

Constants

This section is empty.

Variables

View Source
var FS = fsimpl.FSProviderFunc(New, "file")

FS is used to register this filesystem with an fsimpl.FSMux

Functions

func New

func New(u *url.URL) (fs.FS, error)

New returns a filesystem (an fs.FS) for the tree of files rooted at the directory root. This filesystem is suitable for use with the 'file:' URL scheme, and interacts with the local filesystem.

This is effectively a wrapper for os.DirFS.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL