Discover Packages
github.com/Southclaws/sampctl
util
package
Version:
v0.0.0-...-e289d49
Opens a new window with list of versions in this module.
Published: Jan 16, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CopyFile copies a file from src to dst. If src and dst files exist, and are
the same, then return success. Otherwise, attempt to create a hard link
between the two files. If that fail, copy the file contents from src to dst.
DirEmpty checks if the given directory is empty
Exists simply checks if a path exists and panics on error
FullPath wraps filepath.Abs and panics on error
RelPath makes a path relative to the cwd, if it fails it simply returns the original path
Source Files
¶
Click to show internal directories.
Click to hide internal directories.