Documentation ¶
Index ¶
- Variables
- func CreateFiles(pth string, files []File, createDir bool) error
- func DownloadFileFromURL(ctx context.Context, srcURL, dstFolder string) error
- func FilterDirs(fs []os.DirEntry, regex *regexp.Regexp) []os.DirEntry
- func FolderSequence(dir string) ([]os.DirEntry, error)
- func FolderUUIDs(dir string) ([]os.DirEntry, error)
- type File
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SequenceRegex = regexp.MustCompile(`^backup-\d{13}$`) UUIDRegex = regexp.MustCompile("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$") )
View Source
var (
ErrNoFilename = errors.New("no file exists")
)
Functions ¶
func DownloadFileFromURL ¶ added in v0.1.20
Types ¶
Click to show internal directories.
Click to hide internal directories.