diff options
author | Jakob Unterwurzacher | 2018-04-01 12:31:44 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-04-01 12:31:44 +0200 |
commit | 85056def909c994b66c40763f6d6c2d41c7a61d0 (patch) | |
tree | 2ced74b3bd968a45a0b810666db487473b9758ce /mount.go | |
parent | 5da5e467a6c92a658b00e2f6a94ed03a6fcd3bf0 (diff) |
main: move and rename checkDir*() helper
To avoid confusion with fsck, rename to isDir*()
and move the functions into init_dir.go.
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,9 +58,9 @@ func doMount(args *argContainer) { os.Exit(exitcodes.MountPoint) } if args.nonempty { - err = checkDir(args.mountpoint) + err = isDir(args.mountpoint) } else { - err = checkDirEmpty(args.mountpoint) + err = isDirEmpty(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", |