fileOperations

package
v0.0.0-...-469aeb9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Init

func Init()

Types

type FileInfo

type FileInfo struct {
	Key     int    `json:"key" validate:"required"`
	Name    string `json:"name" validate:"required"`
	IsDir   bool   `json:"is_dir" validate:"required"`
	Size    string `json:"size" validate:"required"`
	ModTime string `json:"mod_time" validate:"required"`
}

type FileInfoList

type FileInfoList struct {
	BasePath string     `json:"base_path" validate:"required"`
	List     []FileInfo `json:"list" validate:"required"`
}

func ListDir

func ListDir(d afero.File, basePath string) (*FileInfoList, error)

Jump to

Keyboard shortcuts

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