Files
crawlab/core/fs/utils.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
}