Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ExecutablePerms are Linux permissions (rwxr--r--) for executable files (scripts, binaries, etc.) ExecutablePerms = os.FileMode(0o744) // NonExecutablePerms are Linux permissions (rw-r--r--) for non-executable files (configs, RPMs, etc.) NonExecutablePerms = os.FileMode(0o644) )
Functions ¶
func CopyFiles ¶
CopyFiles copies files from src to dest.
If 'ext' is non-empty, copies only files with the specified extension, otherwise copies all files.
If `copySubDir` is set to false, copies files only from 'src' directory and does not iterate over sub-directories.
If `copySubDir` is set to true, iterates through all sub-directories and copies the directory tree along with all the files.
If `copySubDir` is used with 'ext', iterates through all sub-directories and only copies files with the specified extension.
func FileExists ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.