file

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Overview

Package file provides file I/O functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists added in v1.2.1

func Exists(path string) (e bool)

Exists returns file existence

func ExistsWithDetail added in v1.2.1

func ExistsWithDetail(path string) (e bool, fi fs.FileInfo, err error)

ExistsWithDetail returns file existence

func ListInDir added in v1.2.1

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

ListInDir returns file list in directory

func Open

func Open(path string, flg int, perm fs.FileMode) (file *os.File, err error)

Open opens the file with the given path, flag and permission. If the folder does not exists, create the folder. If the file does not exist, create the file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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