From b1d09b0f17dd8b2fe9e47289d1743d0a730c7c42 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 4 Aug 2019 14:13:00 +0200 Subject: Rename isDirEmpty -> isEmptyDir The function actually answers the question: "is this an empty dir"? --- mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mount.go') diff --git a/mount.go b/mount.go index 8163df0..657878e 100644 --- a/mount.go +++ b/mount.go @@ -64,7 +64,7 @@ func doMount(args *argContainer) { if args.nonempty { err = isDir(args.mountpoint) } else { - err = isDirEmpty(args.mountpoint) + err = isEmptyDir(args.mountpoint) // OSXFuse will create the mountpoint for us ( https://github.com/rfjakob/gocryptfs/issues/194 ) if runtime.GOOS == "darwin" && os.IsNotExist(err) { tlog.Info.Printf("Mountpoint %q does not exist, but should be created by OSXFuse", -- cgit v1.2.3