package fileutils
import "github.com/dotcloud/docker/pkg/fileutils"
Index ¶
- func CopyFile(src, dst string) (int64, error)
- func CreateIfNotExists(path string, isDir bool) error
- func ReadSymlinkedDirectory(path string) (realPath string, err error)
Functions ¶
func CopyFile ¶
CopyFile copies from src to dst until either EOF is reached on src or an error occurs. It verifies src exists and removes the dst if it exists.
func CreateIfNotExists ¶
CreateIfNotExists creates a file or a directory only if it does not already exist.
func ReadSymlinkedDirectory ¶
ReadSymlinkedDirectory returns the target directory of a symlink. The target of the symbolic link may not be a file.
Source Files ¶
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 14 minutes ago –
Tools for package owners.