sysfile

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreFilesUnique

func AreFilesUnique(files iter.Seq[string]) (bool, error)

AreFilesUnique returns whether each of the given files are unique.

func GetDivergentFiles

func GetDivergentFiles(referenceFile string, files iter.Seq[string]) (iter.Seq2[string, error], error)

GetDivergentFiles returns a subset of the given files with underlying unique IDs that diverge from the given reference file's unique ID.

NOTE: We don't use os.SameFile(...) here because we only want to check if a file's underlying ID has changed.

Types

type UniqueID

type UniqueID = uint64

UniqueID is the type of a file's unique ID.

func GetUniqueID

func GetUniqueID(filePath string) (UniqueID, error)

GetUniqueID returns the INode for a given file (UNIX-only).

Jump to

Keyboard shortcuts

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