Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MaxFileSize is the default maximum allowed file size (100MB)
MaxFileSize = 100 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func CheckFileSize ¶
CheckFileSize verifies if a file is within acceptable size limits
func ExpandPath ¶ added in v0.0.105
ExpandPath expands ~ and ~user to the user's home directory. It also cleans the path and expands environment variables.
func ExpandPaths ¶ added in v0.0.105
ExpandPaths expands a slice of paths using ExpandPath.
func SafeOpenFile ¶
SafeOpenFile opens a file after checking its size
func SafeReadFile ¶
SafeReadFile reads a file after checking its size
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.