filer.sync: parallelize the filer.sync

This commit is contained in:
chrislu
2022-08-07 00:56:15 -07:00
parent 02b38f894b
commit 1a4bf0dcb5
3 changed files with 165 additions and 4 deletions

View File

@@ -63,6 +63,14 @@ func Join(names ...string) string {
func JoinPath(names ...string) FullPath {
return FullPath(Join(names...))
}
func (fp FullPath) IsUnder(other FullPath) bool {
if other == "/" {
return true
}
return strings.HasPrefix(string(fp), string(other)+"/")
}
func Split(separatedValues string, sep string) []string {
if separatedValues == "" {
return nil