summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-04-01 12:31:44 +0200
committerJakob Unterwurzacher2018-04-01 12:31:44 +0200
commit85056def909c994b66c40763f6d6c2d41c7a61d0 (patch)
tree2ced74b3bd968a45a0b810666db487473b9758ce /main.go
parent5da5e467a6c92a658b00e2f6a94ed03a6fcd3bf0 (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 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index e8d2364..ea5efb3 100644
--- a/main.go
+++ b/main.go
@@ -174,7 +174,7 @@ func main() {
}
// Check that CIPHERDIR exists
args.cipherdir, _ = filepath.Abs(flagSet.Arg(0))
- err = checkDir(args.cipherdir)
+ err = isDir(args.cipherdir)
if err != nil {
tlog.Fatal.Printf("Invalid cipherdir: %v", err)
os.Exit(exitcodes.CipherDir)