ftp support

This commit is contained in:
微凉
2021-12-16 18:03:58 +08:00
parent 92a0453e00
commit d49f92b542
9 changed files with 294 additions and 7 deletions

View File

@ -113,4 +113,12 @@ func Base(path string) string {
return path
}
return path[idx+1:]
}
func Join(elem ...string) string {
res := filepath.Join(elem...)
if res == "\\" {
res = "/"
}
return res
}