Documentation ¶
Index ¶
- func CleanDirs(path string) error
- func GetPathBuilder() *fastpath.Builder
- func NopReadCloser(r io.Reader) io.ReadCloser
- func NopWriteCloser(w io.Writer) io.WriteCloser
- func PutPathBuilder(pb *fastpath.Builder)
- func ReadCloserWithCallback(rc io.ReadCloser, cb func()) io.ReadCloser
- func RetryOnEINTR(do func() error) error
- func WalkDir(pb *fastpath.Builder, path string, walkFn func(string, fs.DirEntry)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanDirs ¶
CleanDirs traverses the dir tree of the supplied path, removing any folders with zero children
func GetPathBuilder ¶
func GetPathBuilder() *fastpath.Builder
GetPathBuilder fetches a fastpath.Builder object from the pool
func NopReadCloser ¶
func NopReadCloser(r io.Reader) io.ReadCloser
NopReadCloser turns a supplied io.Reader into io.ReadCloser with a nop Close() implementation
func NopWriteCloser ¶
func NopWriteCloser(w io.Writer) io.WriteCloser
NopWriteCloser turns a supplied io.Writer into io.WriteCloser with a nop Close() implementation
func PutPathBuilder ¶
func PutPathBuilder(pb *fastpath.Builder)
PutPathBuilder places supplied fastpath.Builder back in the pool
func ReadCloserWithCallback ¶
func ReadCloserWithCallback(rc io.ReadCloser, cb func()) io.ReadCloser
ReadCloserWithCallback adds a customizable callback to be called upon Close() of a supplied io.ReadCloser
func RetryOnEINTR ¶
RetryOnEINTR is a low-level filesystem function for retrying syscalls on O_EINTR received
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.