fileutil

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Overview

Package fileutil contains all the funcionality related to deal with files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists checks if a file exists and is not a directory

func FileNameIsGlob

func FileNameIsGlob(pattern string) bool

FileNameIsGlob check if the filanem is a pattern

func FolderExists

func FolderExists(folderpath string) bool

FolderExists checks if a folder exists

func HasStdin

func HasStdin() bool

HasStdin determines if the user has piped input

func ListFilesWithPattern

func ListFilesWithPattern(rootpattern string) ([]string, error)

ListFilesWithPattern in a root folder

func LoadCidrsFromSliceOrFile

func LoadCidrsFromSliceOrFile(option string, splitchar string) (networkList []string)

func LoadFile

func LoadFile(filename string) (lines []string)

LoadFile content to slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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