fs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DECRYPTED_FILE_EXT = ".dcry"
View Source
var ENCRYPTED_FILE_EXT = ".ecry"

Functions

func AddLineToFile

func AddLineToFile(filePath, lineToAdd string) error

func AppendLineToFile

func AppendLineToFile(filePath, line string) error

func CreateShellScript added in v0.1.0

func CreateShellScript(scriptPath string, lines []string) error

Create Shell Script from given list of lines

func DecryptedFileName

func DecryptedFileName(encryptedFileName string) string

removes .ecry from encrypted file name given

func DecryptedFilePattern

func DecryptedFilePattern(normalFilePattern string) string

func EncryptedFilePattern

func EncryptedFilePattern(normalFilePattern string) string

func FileGetBytes

func FileGetBytes(filename string) ([]byte, error)

func FileGetString

func FileGetString(filename string, timeout ...time.Duration) (string, error)

func FindMatchingFiles

func FindMatchingFiles(rootDir string, regex *regexp.Regexp, fileChannel chan<- string, errorChannel chan<- error, wg *sync.WaitGroup)

func findMatchingFiles(rootDir string, regex *regexp.Regexp, fileChannel chan<- string, errorChannel chan<- error, wg *sync.WaitGroup) {

func GetFilePathId

func GetFilePathId(filePath, basePath string) int64

Generate unique seed int64 from given filepath

func IsPresent added in v0.1.0

func IsPresent(filePath string) bool

func ProcessFiles

func ProcessFiles(fileChannel <-chan string, errorChannel chan<- error, done chan<- bool)

func RegexFromPattern

func RegexFromPattern(regexPattern string) (*regexp.Regexp, error)

func RemovePathPrefix

func RemovePathPrefix(filepath, prefix string) string

Remove the given prefix path from given filepath

Types

This section is empty.

Jump to

Keyboard shortcuts

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