mirror of https://github.com/databricks/cli.git
16 lines
430 B
Go
16 lines
430 B
Go
|
package libraries
|
||
|
|
||
|
import (
|
||
|
"path"
|
||
|
|
||
|
"github.com/databricks/cli/bundle"
|
||
|
"github.com/databricks/cli/libs/diag"
|
||
|
"github.com/databricks/cli/libs/filer"
|
||
|
)
|
||
|
|
||
|
func filerForWorkspace(b *bundle.Bundle) (filer.Filer, string, diag.Diagnostics) {
|
||
|
uploadPath := path.Join(b.Config.Workspace.ArtifactPath, InternalDirName)
|
||
|
f, err := filer.NewWorkspaceFilesClient(b.WorkspaceClient(), uploadPath)
|
||
|
return f, uploadPath, diag.FromErr(err)
|
||
|
}
|