1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-15 15:53:41 +00:00

mount, cmount: don't pass huge filenames (>4k) to FUSE as it can't cope

This commit is contained in:
Nick Craig-Wood
2019-10-18 10:53:07 +01:00
parent 76f5e273d2
commit 59026c4761
3 changed files with 18 additions and 2 deletions

View File

@@ -38,6 +38,11 @@ var (
DaemonTimeout time.Duration // OSXFUSE only
)
// Global constants
const (
MaxLeafSize = 4095 // don't pass file names longer than this
)
func init() {
// DaemonTimeout defaults to non zero for macOS
if runtime.GOOS == "darwin" {