common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SizeFormatLegacy  = SizeFormat(0)
	SizeFormatMetric  = SizeFormat(1)
	SizeFormatInteger = SizeFormat(3)
)
View Source
const (
	C_Inode      = "inode"
	C_ModeOct    = "mode_oct"
	C_Mode       = "mode"
	C_HardLinks  = "hard_links"
	C_Owner      = "owner"
	C_Group      = "group"
	C_Blocks     = "blocks"
	C_Size       = "size"
	C_MTime      = "mtime"
	C_CTime      = "ctime"
	C_ATime      = "atime"
	C_Name       = "name"
	C_LinkTarget = "link_target"
)
View Source
const (
	E_none                = "none"
	E_literal             = "literal"
	E_locale              = "locale"
	E_shell               = "shell"
	E_shell_always        = "shell-always"
	E_shell_escape        = "shell-escape"
	E_shell_escape_always = "shell-escape-always"
	E_c                   = "c"
	E_escape              = "escape"
)
View Source
const (
	S_NONE      = "none"
	S_SIZE      = "size"
	S_TIME      = "time"
	S_VERSION   = "version"
	S_EXTENSION = "extension"
	S_KIND      = "kind"
	S_INODE     = "inode"
	S_LINKS     = "links"
	S_FILESIZE  = "filesize"
	S_NAME_LEN  = "name-len"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileError added in v1.1.0

type FileError struct {
	Path string `json:"name"`
	Msg  string `json:"error"`
}

func (*FileError) Error added in v1.1.0

func (e *FileError) Error() string

func (*FileError) GetPath added in v1.1.0

func (e *FileError) GetPath() string

type ParsedName added in v1.1.0

type ParsedName struct {
	Base   string
	Ext    string
	Suffix string
}

type SizeFormat

type SizeFormat uint8

Jump to

Keyboard shortcuts

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