fsutil

package
v0.0.0-...-41c8d9c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fsutil contains utility functions for file system querying.

Index

Constants

View Source
const (
	// All doesn't filter anything
	All dirFilter = iota
	// FilesOnly filters Dir function to return only files
	FilesOnly
	// DirectoriesOnly filters Dir function to return only directories
	DirectoriesOnly
)

Variables

This section is empty.

Functions

func Readdir

func Readdir(path string, filter dirFilter) ([]string, error)

Readdir lists the files or folders under the given path and filter based on the dirFilter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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