filesystem

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTilde

func ExpandTilde(p string) (string, error)

Code by @prep on Github https://github.com/prep/tilde

func GetExecutableDir

func GetExecutableDir() string

GetExecutableDir returns the directory of the executable.

func IsPath

func IsPath(pathExploit string) bool

IsPath checks if the provided string is a path exploit.

func IsValidFile

func IsValidFile(fp string) bool

IsValidFile checks if a file exists and is writable. If it does not exist, it attempts to create it.

func NormalizeNamePathExploit

func NormalizeNamePathExploit(name string) (string, error)

NormalizeNamePathExploit normalizes a given name path exploit by ensuring it has a .py extension

Types

This section is empty.

Jump to

Keyboard shortcuts

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