create

package
v1.11.9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package create handles the making of directories.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPathIsFile = errors.New("path already exist as a file")
	ErrPrefix     = errors.New("invalid prefix value, it must be between 0 - 9")
)

Functions

func Holder

func Holder(path string, size int, prefix uint) error

Holder generates a placeholder file filled with random text in the given directory path, the size of the file determines the number of random characters and the prefix is a digit between 0 and 9 is appended to the filename.

func Holders

func Holders(path string, size int, count uint) error

Holders generates a number of placeholder files in the given directory path.

func MkDir added in v1.11.0

func MkDir(path string) error

MkDir creates a UUID subdirectory in the directory path.

func Zeros added in v1.11.0

func Zeros(n int) []byte

Zeros generates a string of n x 0 characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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