file

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OpModeEncrypt dictates that we are encrypting files (ransom)
	OpModeEncrypt = "encrypt"
	// OpModeDecrypt dictates that we are decrypting files (restore)
	OpModeDecrypt = "decrypt"
)

Variables

This section is empty.

Functions

func GetHomeDirectoryWithFallback

func GetHomeDirectoryWithFallback() string

GetHomeDirectoryWithFallback will return the current users home directory with a fallback to the system drive

func MatchFile

func MatchFile(opMode, name string) bool

MatchFile will verify whether we want to encrypt (or decrypt) a given file on the current operation mode

func WalkFiles

func WalkFiles(directory string, l *logrus.Logger, f func(name, filePath string) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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