Skip to content

Commit

Permalink
mount: Fix mount breaking on Windows - fixes rclone#1827
Browse files Browse the repository at this point in the history
  • Loading branch information
ishuah committed Nov 16, 2017
1 parent 704e82a commit 31d2fb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/mountlib/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"log"
"os"
"runtime"

"github.com/ncw/rclone/cmd"
"github.com/ncw/rclone/fs"
Expand Down Expand Up @@ -166,7 +167,9 @@ like this:
defer close(stopStats)
}

if !AllowNonEmpty {
// Skip checkMountEmpty if --allow-non-empty flag is used or if
// the Operating System is Windows
if !AllowNonEmpty && runtime.GOOS != "windows" {
err := checkMountEmpty(args[1])
if err != nil {
log.Fatalf("Fatal error: %v", err)
Expand Down

0 comments on commit 31d2fb4

Please sign in to comment.