filepath

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListDir

func ListDir(fpath string, recurse ...bool) ([]string, error)

ListDir returns a list of files in a directory. If recurse is true, it will return all files in all subdirectories. If recurse is false, it will return only the files in the directory.

Parameters:

  • fpath: the path to the directory
  • recurse: whether to recurse into subdirectories

Returns:

  • a list of files in the directory
  • an error if one occurred

Types

This section is empty.

Jump to

Keyboard shortcuts

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