mirror of https://github.com/databricks/cli.git
Use filepath.IsLocal over prefix check
This commit is contained in:
parent
12943dbcff
commit
aa9226446b
|
@ -102,7 +102,7 @@ func (t *translateContext) rewritePath(
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if strings.HasPrefix(localRelPath, "..") {
|
||||
if !filepath.IsLocal(localRelPath) {
|
||||
return "", fmt.Errorf("path %s is not contained in sync root path", localPath)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue