Documentation
¶
Overview ¶
Package fs provides predicates over io/fs.FileInfo, derived from the FileInfo interface methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IsDirInfo is a Predicate[iofs.FileInfo] that is true when the // FileInfo reports a directory. Compose it with P.ContraMap and // any extractor to lift it onto a state type. IsDirInfo = func(fi iofs.FileInfo) bool { return fi.IsDir() } // IsRegularInfo is a Predicate[iofs.FileInfo] that is true when // the FileInfo reports a regular file. Compose it with P.ContraMap // and any extractor to lift it onto a state type. IsRegularInfo = func(fi iofs.FileInfo) bool { return fi.Mode().IsRegular() } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.