change filemove

This commit is contained in:
v_zhibsong
2020-11-07 15:35:12 +08:00
parent 35738cfda8
commit e4340641ad
2 changed files with 9 additions and 5 deletions
+5
View File
@@ -59,3 +59,8 @@ func FileMove(src string, dst string) error {
}
return err
}
// GetAutoPath 根据生成路径生成移动路径
func GetAutoPath(path string) string {
return filepath.Base(filepath.Dir(path))
}