io

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryHasHiddenFolder

func DirectoryHasHiddenFolder(directory string) bool

func FolderReaderReadDir added in v1.4.0

func FolderReaderReadDir(root string, maxDepth int, acceptFolder func(string) bool, notify func(string)) ([]string, error)

func IsRunningFromInteractiveTerminal

func IsRunningFromInteractiveTerminal() bool

func ReadFileToLines

func ReadFileToLines(filename string) (lines []string, err error)

func ReadFolders

func ReadFolders(root string, maxSubLevel int) (subFolders []string, err error)

func ReadFolders_ added in v1.4.0

func ReadFolders_(root string, maxSubLevel int) ([]string, error)

func SaveLinesToFile

func SaveLinesToFile(filename string, lines []string) (err error)

Types

type FolderReader added in v1.4.0

type FolderReader func(root string, maxDepth int, acceptFolder func(string) bool, notify func(string)) ([]string, error)

Jump to

Keyboard shortcuts

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