Documentation ¶
Index ¶
- func CreateOutputFileInDir(dir, basename string) (*os.File, error)
- func DirValid(dir string) error
- func FindFilePathsInDir(dir, suffix string) ([]string, error)
- func FindOpenAndCreate(inputDir, outputDir, inputDirSuffix, outputDirSuffix string) ([]*os.File, *os.File, error)
- func OpenFiles(paths []string) ([]*os.File, error)
- func ReadCompressedFile(filePath string) (string, error)
- func RemoveAndCreateDir(dir string) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOutputFileInDir ¶
CreateOutputFileInDir creates a file for writing in the given dir with the given basename.
func FindFilePathsInDir ¶
FindFilePathsInDir finds files in the given dir that have basenames with the given suffix.
func FindOpenAndCreate ¶
func FindOpenAndCreate(inputDir, outputDir, inputDirSuffix, outputDirSuffix string) ([]*os.File, *os.File, error)
FindOpenAndCreate takes an input and output directory, each with their own file suffix. Filepaths are located in the input directory, using the input suffix, an output file is created in the output directory, using the output suffix, and the two are then both returned.
func ReadCompressedFile ¶
ReadCompressedFile takes the path of a compressed file, decompresses it, and returns the contents.
func RemoveAndCreateDir ¶
RemoveAndCreateDir creates the given directory, deleting it first if it already exists.
Types ¶
Click to show internal directories.
Click to hide internal directories.