package fileutil
import "github.com/coreos/etcd/pkg/fileutil"
Index ¶
- 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)
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.
Source Files ¶
- 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.