use IsVolumesPath

This commit is contained in:
Shreyas Goenka 2024-10-31 15:24:51 +01:00
parent 49b2cf2723
commit e32ebd0b48
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package libraries
import ( import (
"context" "context"
"strings"
"github.com/databricks/cli/bundle" "github.com/databricks/cli/bundle"
"github.com/databricks/cli/libs/diag" "github.com/databricks/cli/libs/diag"
@ -20,7 +19,7 @@ func GetFilerForLibraries(ctx context.Context, b *bundle.Bundle) (filer.Filer, s
} }
switch { switch {
case strings.HasPrefix(artifactPath, "/Volumes/"): case IsVolumesPath(artifactPath):
return filerForVolume(ctx, b) return filerForVolume(ctx, b)
default: default: