From 68307d250e3245384bf0b79d3f478ff7f2c2d9e4 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 30 Jun 2024 16:10:51 +0800 Subject: [PATCH] feat: added git diff https://github.com/crawlab-team/crawlab/issues/1485 --- core/controllers/base_file_v2.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/controllers/base_file_v2.go b/core/controllers/base_file_v2.go index 38987be79..5ea63d9a6 100644 --- a/core/controllers/base_file_v2.go +++ b/core/controllers/base_file_v2.go @@ -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))