mkdir

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT-0 Imports: 2 Imported by: 0

Documentation

Overview

create directories.

SYNOPSIS

mkdir [-p] [-m MODE] DIRECTORY ...

DESCRIPTION

mkdir creates the directories named as arguments in the order specified using mode rwxrwxrwx (0777) as modified by the current umask.

The options are as follows:

-m        Set the file permission bits of a new directory to MODE.

-p        Create missing parent directories as required.

SEE ALSO

https://golang.org/pkg/os/#FileMode
https://golang.org/pkg/os/#Mkdir
https://golang.org/pkg/os/#MkdirAll

REFERENCES

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Mode    uint
	Parents bool
	Verbose bool
}

func (*Options) Mkdir

func (opt *Options) Mkdir(operands []string) ([]string, error)

type Opts

type Opts func(*Options)

func Mode

func Mode(mode uint) Opts

func Parents

func Parents(unbuffered bool) Opts

func Verbose

func Verbose(verbose bool) Opts

Jump to

Keyboard shortcuts

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