package fileutil
import "github.com/coreos/etcd/pkg/fileutil"
Index ¶
- Variables
- func IsDirWriteable(dir string) error
- func PurgeFile(dirname string, suffix string, max uint, interval time.Duration, stop <-chan struct{}) <-chan error
- func ReadDir(dirpath string) ([]string, error)
- type Lock
Variables ¶
Functions ¶
func IsDirWriteable ¶
IsDirWriteable checks if dir is writable by writing and removing a file to dir. It returns nil if dir is writable.
func PurgeFile ¶
func PurgeFile(dirname string, suffix string, max uint, interval time.Duration, stop <-chan struct{}) <-chan error
func ReadDir ¶
ReadDir returns the filenames in the given directory in sorted order.
Types ¶
type Lock ¶
func NewLock ¶
Source Files ¶
fileutil.go lock_unix.go purge.go
- Version
- v2.0.1+incompatible
- Published
- Feb 11, 2015
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 1 hour ago –
Tools for package owners.