os

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(name string, permissionBits os.FileMode) error

CreateDirectory creates dir with target name If you want to full access dir,pass os.ModePerm as FileMode parameter

func CreateFile

func CreateFile(fullPath string, mode os.FileMode) (*os.File, error)

CreateFile try to open a target file,if error,create one If you want to full access file,pass os.ModePerm as FileMode parameter

Types

This section is empty.

Jump to

Keyboard shortcuts

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