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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.