Help us shape the future of Go! Take the 2026 Go Developer Survey

statter

command module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

README

statter

CI

-- import "github.com/wtsi-hgi/statter/client"

A simple program to get either stat information for paths, or to perform a directory walk and retrieve directory entry information; useful for when the filesystem might be unreliable and you want to be able to provide a timeout for the stat call, or when escalated privelages are required and a small attack surface is wanted.

Installation

go install github.com/wtsi-hgi/statter@latest

Usage

There are client libraries for convenient access to both the stat and walk functionality.

client.CreateStatter can be used to get a os.Lstat like function, that can be given paths to stat, a 'Head' function that will read the first byte of a file, and a Readlink function that will read the target of a symlink.

client.WalkPath can be used to walk a directory, the results of which will be passed to the given callbacks.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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