fsutil

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(path string) bool

func CreateFile

func CreateFile(filePath string) (success bool, err error)

func DirectoryExists

func DirectoryExists(path string) bool

func FileExists

func FileExists(path string) bool

func GetLines

func GetLines(inFile io.Reader) []string

Get all lines of a given file

func GetModificationTime

func GetModificationTime(path string) (time.Time, error)

func GetSubDirectories

func GetSubDirectories(path string) []string

func GetTempDirectory

func GetTempDirectory() string

GetTempDirectory returns the path to a new temparory directory.

func GetWorkingDirectory

func GetWorkingDirectory() string

Gets the current working directory in which this application is being executed.

func IsDirectory

func IsDirectory(path string) (bool, error)

func IsFile

func IsFile(path string) (bool, error)

func OpenFile

func OpenFile(filepath string) (*os.File, error)

func PathExists

func PathExists(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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