fileutil

package
v0.0.0-...-df633b8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileIfNotExists

func CreateFileIfNotExists(name string) error

CreateFileIfNotExists creates file specified if not exists

func CreateRecursively

func CreateRecursively(name string) error

CreateRecursively creates file recursively.

func IsFileExists

func IsFileExists(name string) (bool, error)

IsFileExists checks if file specified exists

func IsFileInvisible

func IsFileInvisible(filename string) bool

func ListDirNames

func ListDirNames(path string, n int) ([]string, error)

func ListVisibleDirNames

func ListVisibleDirNames(path string, n int) ([]string, error)

func ListVisibleDirNamesWithSort

func ListVisibleDirNamesWithSort(path string, n int) ([]string, error)

func RemoveAll

func RemoveAll(path string) error

func RemoveContents

func RemoveContents(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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