package hugofs
import "github.com/gohugoio/hugo/hugofs"
Package hugofs provides the file systems used by Hugo.
Index ¶
Variables ¶
Os points to an Os Afero file system.
Types ¶
type Fs ¶
type Fs struct { // Source is Hugo's source file system. Source afero.Fs // Destination is Hugo's destination file system. Destination afero.Fs // Os is an OS file system. // NOTE: Field is currently unused. Os afero.Fs // WorkingDir is a read-only file system // restricted to the project working dir. WorkingDir *afero.BasePathFs }
Fs abstracts the file system to separate source and destination file systems and allows both to be mocked for testing.
func NewDefault ¶
NewDefault creates a new Fs with the OS file system as source and destination file systems.
func NewFrom ¶
NewFrom creates a new Fs based on the provided Afero Fs as source and destination file systems. Useful for testing.
func NewMem ¶
NewMem creates a new Fs with the MemMapFs as source and destination file systems. Useful for testing.
Source Files ¶
- Version
- v0.32.2
- Published
- Jan 3, 2018
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 30 minutes ago –
Tools for package owners.