Documentation ¶
Index ¶
- Variables
- func AddLineToFile(filePath, lineToAdd string) error
- func AppendLineToFile(filePath, line string) error
- func CreateShellScript(scriptPath string, lines []string) error
- func DecryptedFileName(encryptedFileName string) string
- func DecryptedFilePattern(normalFilePattern string) string
- func EncryptedFilePattern(normalFilePattern string) string
- func FileGetBytes(filename string) ([]byte, error)
- func FileGetString(filename string, timeout ...time.Duration) (string, error)
- func FindMatchingFiles(rootDir string, regex *regexp.Regexp, fileChannel chan<- string, ...)
- func GetFilePathId(filePath, basePath string) int64
- func IsPresent(filePath string) bool
- func ProcessFiles(fileChannel <-chan string, errorChannel chan<- error, done chan<- bool)
- func RegexFromPattern(regexPattern string) (*regexp.Regexp, error)
- func RemovePathPrefix(filepath, prefix string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var DECRYPTED_FILE_EXT = ".dcry"
View Source
var ENCRYPTED_FILE_EXT = ".ecry"
Functions ¶
func AddLineToFile ¶
func AppendLineToFile ¶
func CreateShellScript ¶ added in v0.1.0
Create Shell Script from given list of lines
func DecryptedFileName ¶
removes .ecry from encrypted file name given
func DecryptedFilePattern ¶
func EncryptedFilePattern ¶
func FileGetBytes ¶
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 ¶
Generate unique seed int64 from given filepath
func ProcessFiles ¶
func RemovePathPrefix ¶
Remove the given prefix path from given filepath
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.