fsops

package
v0.0.0-...-2952c3e Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst. If dst does not exist, it will be created.

func FilenameExistsInFolder

func FilenameExistsInFolder(filename, folder string) bool

func GetExtension

func GetExtension(cardsFilepath string) (counters.FileContent, error)

func GetFilenamesForPath

func GetFilenamesForPath(path string) ([]string, error)

GetFilenamesForPath returns every path+filename found in `path` Deprecated: use `ListFiles` instead. This function only works with relative paths

func IdentifyJSONFileContent

func IdentifyJSONFileContent(data []byte) (counters.FileContent, error)

func ListFiles

func ListFiles(dir string) ([]string, error)

ListFiles returns all filenames in the provided directory as a string slice. Does not recurse into subdirectories.

func ReadMarkupFile

func ReadMarkupFile(markupFilepath string, destination any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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