mk

package
v0.0.0-...-923e5ac Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ERROR_CREATE_DIRECTORY = 20
	ERROR_CREATE_FILE      = 21
	ERROR_LINKING          = 22
)

Variables

This section is empty.

Functions

func Directory

func Directory(input *Input) (exitCode uint8)

create directorys

func File

func File(input *Input) (exitCode uint8)

create files

func Link(input *Input) (exitCode uint8)

create links, either symbolic or hard

func Mk

func Mk(input *Input) (exitCode uint8)

create common directory structes (files, directorys and links)

func Temporary

func Temporary(input *Input) (exitCode uint8)

create temporary files with unique name under os.TempDir()

Types

type Input

type Input struct {
	abstract.Input

	PathList []string

	File        bool
	Link        bool
	Temporary   bool
	Recursive   bool
	Interactive bool
	Symbolic    bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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