fsutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

Package fsutil implements some file system utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveBase added in v0.0.3

func ResolveBase(basePath string, rawPath string) string

ResolveBase resolve rawPath within the basePath.

func ResolveHomeDir

func ResolveHomeDir(rawPath string) (string, error)

ResolveHomeDir resolve prefix '~' in path with environment variable.

Types

type LockedFS added in v0.0.3

type LockedFS struct {
	// contains filtered or unexported fields
}

func NewLockedFS added in v0.0.3

func NewLockedFS() *LockedFS

func (*LockedFS) Create added in v0.0.3

func (fs *LockedFS) Create(name string) (*LockedFile, error)

func (*LockedFS) Open added in v0.0.3

func (fs *LockedFS) Open(name string) (*LockedFile, error)

type LockedFile added in v0.0.3

type LockedFile struct {
	*os.File
	// contains filtered or unexported fields
}

func (*LockedFile) Close added in v0.0.3

func (f *LockedFile) Close() error

Jump to

Keyboard shortcuts

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