gcfile

package
v0.0.0-...-54f7cab Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAllTexts

func ContainsAllTexts(path string, sLine, eLine uint64, args ...string) (bool, error)

ContainsAllText: scans a file line by line for the given list of strings and returns true if all the strings are found and false if any of the strings is not found

func ContainsText

func ContainsText(path string, sLine, eLine uint64, args ...string) ([]bool, error)

Contains: scans a file line by line and check if it contains the given list of strings sLine and eLine are the start and end lines to scan it starts from 1 where 0 means all lines

func DeleteGlobPatternedPaths

func DeleteGlobPatternedPaths(patterns string)

DeleteGlobPatternedPaths: Delete the files/folders as per the patterns mentioned

func GetAllMatches

func GetAllMatches(patterns []string, optionalCommonRoot ...string) ([]string, error)

func GetDirSize

func GetDirSize(path string) (int64, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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