io

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(path string) (bool, error)

func IsEmptyDir

func IsEmptyDir(path string) (bool, error)

func Open

func Open(path string) (io.ReadCloser, error)

func Readdirnames

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

Readdirnames reads the contents of the directory associated with file and returns a slice of up to n names of files in the directory.

The ioutil.ReadDir function will get the directory name and call lstat to get the directory FileInfo. but when mount point is not connected, lstat function will return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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