dir

package module
v0.0.0-...-b43614f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

dir

This is a simple Go package, that contains functions to work with/parse directory structures.

Author

Written by Meelis Utt

Documentation

Overview

Package `dir` simple functions to parse and work with directory structure.

Index

Constants

This section is empty.

Variables

View Source
var WaitGroup sync.WaitGroup

WaitGroup is a variable to easily handle go routine waiting.

Functions

func Walk

func Walk(root fs.FileInfo, fileAction func(fs.FileInfo), dirAction func(fs.FileInfo))

Walk walks recursively given directory structure, performing given actions on files and directories. Actions on files and directories are expected to take the corresponding file/dir path as an argument and not return anything.

Types

This section is empty.

Jump to

Keyboard shortcuts

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