package fileutil

import "github.com/coreos/etcd/pkg/fileutil"

Index

Functions

func IsDirWriteable

func IsDirWriteable(dir string) error

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

func ReadDir(dirpath string) ([]string, error)

ReadDir returns the filenames in the given directory.

Source Files

fileutil.go purge.go

Version
v0.5.0-alpha.5
Published
Dec 13, 2014
Platform
linux/amd64
Imports
7 packages
Last checked
3 minutes ago

Tools for package owners.