osfs

package module
v0.0.0-...-af1ca35 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

README

OS file system Go Reference

Documentation

Overview

Package osfs exposes the operating system's file system as an io/fs.StatFS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirFS

type DirFS struct {
	Dir string
}

DirFS is a operating's file system.

func (DirFS) Open

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

Open opens a file.

func (DirFS) Stat

func (fsys DirFS) Stat(name string) (fs.FileInfo, error)

Stat returns the information of a file.

Jump to

Keyboard shortcuts

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