tractor.dev/toolkit-go@v0.0.0-20241010005851-214d91207d07/engine/fs/iofs.go (about)

     1  package fs
     2  
     3  import (
     4  	iofs "io/fs"
     5  )
     6  
     7  var (
     8  	ErrInvalid    = iofs.ErrInvalid
     9  	ErrPermission = iofs.ErrPermission
    10  	ErrExist      = iofs.ErrExist
    11  	ErrNotExist   = iofs.ErrNotExist
    12  	ErrClosed     = iofs.ErrClosed
    13  
    14  	SkipAll = iofs.SkipAll
    15  	SkipDir = iofs.SkipDir
    16  )
    17  
    18  var (
    19  	FormatDirEntry     = iofs.FormatDirEntry
    20  	FormatFileInfo     = iofs.FormatFileInfo
    21  	Glob               = iofs.Glob
    22  	ReadFile           = iofs.ReadFile
    23  	ValidPath          = iofs.ValidPath
    24  	WalkDir            = iofs.WalkDir
    25  	FileInfoToDirEntry = iofs.FileInfoToDirEntry
    26  	ReadDir            = iofs.ReadDir
    27  	Sub                = iofs.Sub
    28  	Stat               = iofs.Stat
    29  )
    30  
    31  const (
    32  	ModeDir        = iofs.ModeDir
    33  	ModeAppend     = iofs.ModeAppend
    34  	ModeExclusive  = iofs.ModeExclusive
    35  	ModeTemporary  = iofs.ModeTemporary
    36  	ModeSymlink    = iofs.ModeSymlink
    37  	ModeDevice     = iofs.ModeDevice
    38  	ModeNamedPipe  = iofs.ModeNamedPipe
    39  	ModeSocket     = iofs.ModeSocket
    40  	ModeSetuid     = iofs.ModeSetuid
    41  	ModeSetgid     = iofs.ModeSetgid
    42  	ModeCharDevice = iofs.ModeCharDevice
    43  	ModeSticky     = iofs.ModeSticky
    44  	ModeIrregular  = iofs.ModeIrregular
    45  	ModeType       = iofs.ModeType
    46  	ModePerm       = iofs.ModePerm
    47  )
    48  
    49  type (
    50  	DirEntry    = iofs.DirEntry
    51  	FS          = iofs.FS
    52  	File        = iofs.File
    53  	FileInfo    = iofs.FileInfo
    54  	FileMode    = iofs.FileMode
    55  	GlobFS      = iofs.GlobFS
    56  	PathError   = iofs.PathError
    57  	ReadDirFS   = iofs.ReadDirFS
    58  	ReadDirFile = iofs.ReadDirFile
    59  	ReadFileFS  = iofs.ReadFileFS
    60  	StatFS      = iofs.StatFS
    61  	SubFS       = iofs.SubFS
    62  	WalkDirFunc = iofs.WalkDirFunc
    63  )