fsutil

package
v0.0.0-...-700a36e Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(filename string) (*os.File, error)

func DirExists

func DirExists(dirname string) bool

DirExists checks if a directory exists

func FileExists

func FileExists(filename string) bool

FileExists checks if a file exists

func GetDirs

func GetDirs(dirname string) ([]string, error)

GetDirs returns a list of directories in a directory

func GetFile

func GetFile(filename string) (*os.File, error)

func GetFileContent

func GetFileContent(filename string) (string, error)

TODO: Should probably account for different filetypes

func GetFiles

func GetFiles(dirname string) ([]string, error)

GetFiles returns a list of files in a directory

func GetFilesWithExtension

func GetFilesWithExtension(dirname string, extension string) ([]string, error)

GetFilesWithExtension returns a list of files in a directory with a specific extension

func PathConvert

func PathConvert(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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