cmount: use network mode by default on windows

This commit is contained in:
albertony 2023-01-19 21:51:47 +01:00
parent 19e8c8d42a
commit 11443e4491
2 changed files with 2 additions and 1 deletions

View file

@ -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,
// but directory path needs more checks.
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
}
var err error

View file

@ -57,6 +57,7 @@ var DefaultOpt = Options{
NoAppleDouble: true, // use noappledouble by default
NoAppleXattr: false, // do not use noapplexattr by default
AsyncRead: true, // do async reads by default
NetworkMode: true, // use network mode by default (Windows only)
}
type (