forked from TrueCloudLab/rclone
cmount: use network mode by default on windows
This commit is contained in:
parent
19e8c8d42a
commit
11443e4491
2 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,7 @@ func handleLocalMountpath(f fs.Fs, mountpath string, opt *mountlib.Options) (str
|
||||||
// Drive letter string can be used as is, since we have already checked it does not exist,
|
// Drive letter string can be used as is, since we have already checked it does not exist,
|
||||||
// but directory path needs more checks.
|
// but directory path needs more checks.
|
||||||
if opt.NetworkMode {
|
if opt.NetworkMode {
|
||||||
fs.Errorf(nil, "Ignoring --network-mode as it is not supported with directory mountpoint")
|
fs.Debugf(nil, "Ignoring --network-mode as it is not supported with directory mountpoint")
|
||||||
opt.NetworkMode = false
|
opt.NetworkMode = false
|
||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
|
|
|
@ -57,6 +57,7 @@ var DefaultOpt = Options{
|
||||||
NoAppleDouble: true, // use noappledouble by default
|
NoAppleDouble: true, // use noappledouble by default
|
||||||
NoAppleXattr: false, // do not use noapplexattr by default
|
NoAppleXattr: false, // do not use noapplexattr by default
|
||||||
AsyncRead: true, // do async reads by default
|
AsyncRead: true, // do async reads by default
|
||||||
|
NetworkMode: true, // use network mode by default (Windows only)
|
||||||
}
|
}
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
Loading…
Add table
Reference in a new issue