mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
14 lines
278 B
Go
14 lines
278 B
Go
package fs
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/utils"
|
|
"path/filepath"
|
|
)
|
|
|
|
func GetBaseFileFsSvc(rootPath string) (svc *Service, err error) {
|
|
workspacePath := utils.GetWorkspace()
|
|
fsSvc := NewFsService(filepath.Join(workspacePath, rootPath))
|
|
|
|
return fsSvc, nil
|
|
}
|