Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrIllegalCmdsFields Cmds经空格切分后,每一部分都必须不以/为前缀、且不存在.. ErrIllegalCmdsFields = errors.New("the fields of cmds has illegal prefix `/` or contains illegal string `..`") // ErrIllegalRelativePath relativePath包含..或其为绝对路径 ErrIllegalRelativePath = errors.New("relativePath contains illegal string `..` and must not be absolute path") // ErrIllegalAbsPath absPath包含..、不为绝对路径或不包含指定前缀 ErrIllegalAbsPath = errors.New("relativePath contains illegal string `..`, must not be absolute path and must have special prefix") )
Functions ¶
func ValidateAbsPath ¶
ValidateAbsPath 验证相对路径是否合法
func ValidateRelativePath ¶
ValidateRelativePath 验证相对路径是否合法
Types ¶
Click to show internal directories.
Click to hide internal directories.