Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FILE is file. FILE = "file" // DIR is directory. DIR = "directory" // COUNT is file count. COUNT = "Count" // UTF8 is csv encoding. UTF8 = "utf8" // SJIS is csv encoding. SJIS = "sjis" )
View Source
const (
// DiffHeader is diff command output csv header.
DiffHeader = "Path\tType\tDiff"
)
Variables ¶
View Source
var RootCmd = &cobra.Command{Use: "gfi"}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type DirInfo ¶
type DirInfo struct { Full string Rel string Abs string Name string Time string Size string FileCount int64 DirCount int64 }
DirInfo is file infomation.
type DirInfoValue ¶
type DirInfoValue int
DirInfoValue is DirInfo type.
const ( // DirFull is full path DirFull DirInfoValue = iota + 1 // DirRel is relative path. DirRel // DirAbs is absolute path. DirAbs // DirName is directory name. DirName // DirTime is directory modified time. DirTime // DirSize is directory size. DirSize // DirFileCount is file count. DirFileCount // DirDirCount is directory count or directory. DirDirCount // DirMax is Max DirMax = iota )
func (DirInfoValue) String ¶
func (div DirInfoValue) String() string
type FileInfo ¶
type FileInfo struct { Full string Rel string Abs string Name string Time string Size string Mode string Type string }
FileInfo is file infomation.
type FileInfoValue ¶
type FileInfoValue int
FileInfoValue is FileInfo type.
const ( // FileFull is full path FileFull FileInfoValue = iota + 1 // FileRel is relative path. FileRel // FileAbs is absolute path. FileAbs // FileName is file name. FileName // FileTime is file modified time. FileTime // FileSize is file size. FileSize // FileMode is file permissions. FileMode // FileType is file or directory. FileType // FileMax is Max FileMax = iota )
func (FileInfoValue) String ¶
func (fiv FileInfoValue) String() string
Click to show internal directories.
Click to hide internal directories.