mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:13:52 +08:00
mount: default --deamon-timout to 15 minutes on macOS and FreeBSD
See: https://forum.rclone.org/t/macos-fuse-mount-contents-disappear-after-writes-while-using-vfs-cache/10566/
This commit is contained in:
parent
276f8cccf6
commit
4e64ee38e2
|
@ -38,6 +38,13 @@ var (
|
||||||
DaemonTimeout time.Duration // OSXFUSE only
|
DaemonTimeout time.Duration // OSXFUSE only
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// DaemonTimeout defaults to non zero for macOS and freebsd
|
||||||
|
if runtime.GOOS == "darwin" || runtime.GOOS == "freebsd" {
|
||||||
|
DaemonTimeout = 15 * time.Minute
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check is folder is empty
|
// Check is folder is empty
|
||||||
func checkMountEmpty(mountpoint string) error {
|
func checkMountEmpty(mountpoint string) error {
|
||||||
fp, fpErr := os.Open(mountpoint)
|
fp, fpErr := os.Open(mountpoint)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user