touchd

package
v0.0.0-...-839e826 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Overview

package touchd implements a utility to create files and its necessary parent directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(fileName string) error

CreateFile creates a file and any required parent directories. If the file already exists, then the file's access/modified time is updated to reflect the current time.

It returns nil, if the file already exists or is successfully created.

func CreateFiles

func CreateFiles(fileNames ...string) error

CreateFiles calls CreateFile exactly once for each provided file. It returns nil if all files are created successfully. Otherwise, it returns a single reduced error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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