Documentation ¶
Overview ¶
Package fsutil implements common file operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir copies a directory from srcDir to dstDir. Target dir must not exist. The mode is preserved. The owner is also preserved if the EUID is 0.
func CopyFile ¶
CopyFile copies the regular file at path src to dst. dst is atomically replaced if it already exists and inherits src's mode. Ownership will also be preserved if the EUID is 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.