osutil

package module
v0.0.0-...-2114b00 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: BSD-3-Clause Imports: 1 Imported by: 5

README

osutil

Package osutil provides the operating system-specific path information utility functions.

CI Service
linux travis-ci.org
darwin circleci.com
windows appveyor-badge

codecov.io godoc.org Analytics

Install

go get -u github.com/pkgutil/osutil

Overview

import "github.com/pkgutil/osutil"

Index

Package files

doc.go osutil.go

func IsDirExist

func IsDirExist(dir string) bool

IsDirExist reports whether dir exists and which is directory.

func IsExist

func IsExist(filename string) bool

IsExist reports whether the filename is exists.

func IsNotExist

func IsNotExist(filename string) bool

IsNotExist reports whether the filename is not exists.

func MkdirAll

func MkdirAll(dir string, perm os.FileMode) error

MkdirAll checks whether the exist dir directory and create directory to dir filepath if not exist.

Documentation

Overview

Package osutil provides the operating system-specific path information utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirExist

func IsDirExist(dir string) bool

IsDirExist reports whether dir exists and which is directory.

func IsExist

func IsExist(filename string) bool

IsExist reports whether the filename is exists.

func IsNotExist

func IsNotExist(filename string) bool

IsNotExist reports whether the filename is not exists.

func MkdirAll

func MkdirAll(dir string, perm os.FileMode) error

MkdirAll checks whether the exist dir directory and create directory to dir filepath if not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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