osfs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSVFS

type OSVFS struct {
	afero.Fs
}

func New

func New() *OSVFS

func (*OSVFS) Exists

func (o *OSVFS) Exists(path string) bool

func (*OSVFS) Glob

func (o *OSVFS) Glob(pattern string) ([]string, error)

func (*OSVFS) ReadAll

func (o *OSVFS) ReadAll(r io.Reader) ([]byte, error)

func (*OSVFS) ReadDir

func (o *OSVFS) ReadDir(path string) ([]os.FileInfo, error)

func (*OSVFS) ReadFile

func (o *OSVFS) ReadFile(path string) ([]byte, error)

func (*OSVFS) Walk

func (o *OSVFS) Walk(root string, walkFn filepath.WalkFunc) error

func (*OSVFS) WriteFile

func (o *OSVFS) WriteFile(path string, content []byte, perm os.FileMode) error

Jump to

Keyboard shortcuts

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