{"modulePath":"github.com/cloudnative-pg/plugin-pvc-backup","version":"v0.0.0-20240215115252-5245d4281c03","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package fileutils\n\nPackage fileutils contains a set of useful functions to manage files\n\n## Functions\n\n```go\nfunc AbsolutePath(path string) (string, error)\n```\nAbsolutePath converts a path (relative or absolute) into an absolute one. Supports '~' notation for $HOME directory of the current user.\n\n```go\nfunc CopyFile(src, dst string) error\n```\nCopyFile 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 fails, copy the file contents from src to dst. Creates any missing directories. Supports '~' notation for $HOME directory of the current user.\n\n```go\nfunc IsDir(path string) (bool, error)\n```\nIsDir checks if a path points to an existing directory\n\n","path":"github.com/cloudnative-pg/plugin-pvc-backup/internal/fileutils","name":"fileutils","synopsis":"Package fileutils contains a set of useful functions to manage files","isRedistributable":true}
