mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
e101f92016
commit
c66793c02b
|
@ -19,8 +19,8 @@ type LocalClient struct {
|
||||||
|
|
||||||
func NewLocalClient(root string) (Filer, error) {
|
func NewLocalClient(root string) (Filer, error) {
|
||||||
if runtime.GOOS == "windows" && root == "/" {
|
if runtime.GOOS == "windows" && root == "/" {
|
||||||
// Windows paths require a drive specified. This allows use to create
|
// Windows paths require a Volume/Drive letter specified. This allows us
|
||||||
// local filers at the root of a windows file system
|
// to create local filers at the root of a windows file system without specifying one
|
||||||
return &LocalClient{root: NewRootPath("")}, nil
|
return &LocalClient{root: NewRootPath("")}, nil
|
||||||
}
|
}
|
||||||
return &LocalClient{
|
return &LocalClient{
|
||||||
|
|
Loading…
Reference in New Issue