fs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfFileExists

func CheckIfFileExists(filePath string) bool

func CountFileSize

func CountFileSize(filePath string) (int64, error)

func CountLinesInFile

func CountLinesInFile(filePath string) (int, error)

func CreateDirectoryIfNotExist

func CreateDirectoryIfNotExist(dirPath string) error

func DeleteAllFilesInDirectory

func DeleteAllFilesInDirectory(dirPath string, omitPaths []string) (int, int, error)

func GetMostRecentFileFromDirectory

func GetMostRecentFileFromDirectory(dirPath string) (string, error)

func GetNonMostRecentFilesFromDirectory

func GetNonMostRecentFilesFromDirectory(dirPath string) ([]string, error)

func GetTemporaryFilePath

func GetTemporaryFilePath() string

func GetTimedFilePath

func GetTimedFilePath(baseDir string) string

func ParseIPsFromBytes

func ParseIPsFromBytes(toParse []byte) ([]*net.IP, error)

func ReadIPsFromAddressTreeBytes

func ReadIPsFromAddressTreeBytes(toParse []byte) ([]*net.IP, error)

func ReadIPsFromBinaryFileBytes

func ReadIPsFromBinaryFileBytes(toParse []byte) []*net.IP

func ReadIPsFromFatHexFileBytes

func ReadIPsFromFatHexFileBytes(toParse []byte) []*net.IP

func ReadIPsFromFile

func ReadIPsFromFile(filePath string) ([]*net.IP, error)

func ReadIPsFromHexFile

func ReadIPsFromHexFile(filePath string) ([]*net.IP, error)

func ReadIPsFromHexFileBytes

func ReadIPsFromHexFileBytes(toParse []byte) []*net.IP

func UnzipBytes

func UnzipBytes(data []byte) ([]byte, error)

func WriteStringsToFile

func WriteStringsToFile(toWrite []string, filePath string) error

func ZLibCompress

func ZLibCompress(inputPath string, outputPath string) error

func ZipFiles

func ZipFiles(inputPaths []string, outputPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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