mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: added git diff
https://github.com/crawlab-team/crawlab/issues/1485
This commit is contained in:
@@ -291,6 +291,10 @@ func PostBaseFileExport(rootPath string, c *gin.Context) {
|
||||
c.File(zipFilePath)
|
||||
}
|
||||
|
||||
func GetBaseFileFsSvc(rootPath string) (svc interfaces.FsServiceV2, err error) {
|
||||
return getBaseFileFsSvc(rootPath)
|
||||
}
|
||||
|
||||
func getBaseFileFsSvc(rootPath string) (svc interfaces.FsServiceV2, err error) {
|
||||
workspacePath := viper.GetString("workspace")
|
||||
fsSvc := fs.NewFsServiceV2(filepath.Join(workspacePath, rootPath))
|
||||
|
||||
Reference in New Issue
Block a user