filepath

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// PrivateFileMode grants owner to read/write a file.
	PrivateFileMode = 0600
	// PrivateDirMode grants owner to make/remove files inside the directory.
	PrivateDirMode = 0700
)

Variables

This section is empty.

Functions

func Exist

func Exist(name string) bool

Exist returns a boolean indicating whether the file is known to report that a file or directory does exist.

func Pathify

func Pathify(path string) string

Pathify Expand, Abs and Clean the path

func ToDir

func ToDir(path string) string

ToDir returns the dir format ends with OS-specific path separator.

func TouchAll

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

TouchAll creates a file or a directory only if it does not already exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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