pickel

package module
v0.0.0-...-409d411 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 9 Imported by: 0

README

Pickel

simple file enumerator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirsIn

func DirsIn(root string) (out <-chan string)

DirsIn specified directory (not recurse)

func FilesIn

func FilesIn(root string) (out <-chan string)

FilesIn specified directory (not recurse)

func NewFilePicker

func NewFilePicker(o Option) func(string) <-chan string

NewFilePicker with option

func PickIn

func PickIn(root string, toBePicked func(os.FileInfo) bool) (out <-chan string)

PickIn root directory match with specified condition (not recurse)

Types

type Option

type Option struct {
	PickupAlreadySeen     bool
	PickupEmptyFile       bool
	PickupReleationalPath bool
}

Option for file pick

Jump to

Keyboard shortcuts

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