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: 3 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址