sys

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: GPL-3.0 Imports: 6 Imported by: 3

README

sys

Low level OS helpers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkDir

func WalkDir(root string, cb WalkDirFunc) error

Types

type DirEntry

type DirEntry struct {
	Name  string
	Inode uint64
	Type  fs.FileMode
}

type FileInfo

type FileInfo struct {
	FileKey
	Path      string
	Size      int64
	ModTimeNs int64
	Mode      fs.FileMode
}

func Lstat

func Lstat(path string) (FileInfo, error)

func Stat

func Stat(path string) (FileInfo, error)

type FileKey

type FileKey struct {
	Device uint64
	Inode  uint64
}

type WalkDirFunc

type WalkDirFunc func(dirRelPath string, d DirEntry, err error) error

dirRelPath is the path to the directory containing the entry, relative to root

Jump to

Keyboard shortcuts

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