unionfs

package
v0.0.0-...-06ef541 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package unionfs allows multiple file systems to be read as a union.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS []fs.FS

A FS is an FS presenting the union of the file systems in the slice. If multiple file systems provide a particular file, Open uses the FS listed earlier in the slice.

func Sub

func Sub(fsys fs.FS, dirs ...string) (FS, error)

Sub returns an FS corresponding to the merged subtree rooted at a set of fsys's dirs.

func (FS) Open

func (fsys FS) Open(name string) (fs.File, error)

func (FS) ReadDir

func (fsys FS) ReadDir(name string) ([]fs.DirEntry, error)

Jump to

Keyboard shortcuts

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