From e32ebd0b480fe8c3a506df04ac079d359312962c Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Thu, 31 Oct 2024 15:24:51 +0100 Subject: [PATCH] use IsVolumesPath --- bundle/libraries/filer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bundle/libraries/filer.go b/bundle/libraries/filer.go index 74f8175d9..8cbf1a510 100644 --- a/bundle/libraries/filer.go +++ b/bundle/libraries/filer.go @@ -2,7 +2,6 @@ package libraries import ( "context" - "strings" "github.com/databricks/cli/bundle" "github.com/databricks/cli/libs/diag" @@ -20,7 +19,7 @@ func GetFilerForLibraries(ctx context.Context, b *bundle.Bundle) (filer.Filer, s } switch { - case strings.HasPrefix(artifactPath, "/Volumes/"): + case IsVolumesPath(artifactPath): return filerForVolume(ctx, b) default: