file

package
v0.0.0-...-8c24509 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFullPath

func CreateFullPath(path string) error

CreateFullPath make parent directories as needed

func CreateFullPathForFile

func CreateFullPathForFile(filePath string) (err error)

CreateFullPathForFile take the directory path in which this file should exist and create this path

func DefaultConfigPath

func DefaultConfigPath(fileName string, homeConf *configdir.Config) (path string)

DefaultConfigPath return the path for file `filename` under the default config folder

func ExistFile

func ExistFile(path string) bool

ExistFile return true if this file exist

func HomeConfigFolder

func HomeConfigFolder(systemVendorName, systemProgramName string) (*configdir.Config, error)

HomeConfigFolder return the default config folder path

func IsADirectoryPath

func IsADirectoryPath(path string) bool

IsADirectoryPath get info about the path string not about a physical resource in the filesystem return true if the path is a directory path

Types

This section is empty.

Jump to

Keyboard shortcuts

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