IO

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferIOOutputByte

func BufferIOOutputByte(path string, flag int, perm os.FileMode, data []byte) error

func BufferIOOutputString

func BufferIOOutputString(path string, flag int, perm os.FileMode, data string) error

func BufferInputByte

func BufferInputByte(path string, size uint) ([]byte, error)

func BufferInputString

func BufferInputString(path string, size uint) (string, error)

func BufferOutputAppendByte

func BufferOutputAppendByte(path string, perm os.FileMode, data []byte) error

func BufferOutputAppendString

func BufferOutputAppendString(path string, perm os.FileMode, data string) error

func BufferOutputByte

func BufferOutputByte(path string, flag int, perm os.FileMode, data []byte) error

func BufferOutputClearByte

func BufferOutputClearByte(path string, perm os.FileMode) error

func BufferOutputClearString

func BufferOutputClearString(path string, perm os.FileMode) error

func BufferOutputString

func BufferOutputString(path string, flag int, perm os.FileMode, data string) error

func BufferOutputWriteByte

func BufferOutputWriteByte(path string, perm os.FileMode, data []byte) error

func BufferOutputWriteOnlyByte

func BufferOutputWriteOnlyByte(path string, perm os.FileMode, data []byte) error

func BufferOutputWriteOnlyString

func BufferOutputWriteOnlyString(path string, perm os.FileMode, data string) error

func BufferOutputWriteString

func BufferOutputWriteString(path string, perm os.FileMode, data string) error

func CheckFileExist

func CheckFileExist(path string) bool

func CheckFolderExist

func CheckFolderExist(path string) bool

func CopyFile

func CopyFile(origin, target string) error

func CopyFolder

func CopyFolder(origin, target string) error

func CreateFolder

func CreateFolder(path string) error

func DeleteFile

func DeleteFile(path string) error

func DeleteFolder

func DeleteFolder(path string) error

func GetCurrentPath

func GetCurrentPath() string

func GetFileInfo

func GetFileInfo(path string) os.FileInfo

func GetFolderInfo

func GetFolderInfo(path string) ([]string, error)

func LineInputString

func LineInputString(path string) ([]string, error)

func MoveFile

func MoveFile(origin, target string) error

func MoveFolder

func MoveFolder(origin, target string) error

func RenameFile

func RenameFile(origin, target string) error

func RenameFolder

func RenameFolder(origin, target string) error

Types

type FileNode

type FileNode struct {
	Sub  []FileNode `json:"sub"`
	Path string     `json:"path"`
	Name string     `json:"name"`
	File bool       `json:"file"`
}

type FileTree

type FileTree struct {
	Root FileNode `json:"root"`
	Err  error    `json:"err"`
}

func GetFolderTree

func GetFolderTree(path string) FileTree

Jump to

Keyboard shortcuts

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