From 5bbbb6e33142c23b80249ed6a075b8b44bf950cd Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 1 Nov 2017 12:14:04 -0700 Subject: [PATCH] Create a .hush/list/contacts/ directory for storying user-specified contacts --- lib/Hush/List.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Hush/List.pm b/lib/Hush/List.pm index 9aae37c..cc666bd 100644 --- a/lib/Hush/List.pm +++ b/lib/Hush/List.pm @@ -34,6 +34,12 @@ sub _sanity_checks { } create_default_conf($list_conf); + if (mkdir catdir($HUSHLIST_CONFIG_DIR,'contacts')) { + print "Created $HUSHLIST_CONFIG_DIR/contacts\n"; + } else { + die "Could not create $HUSHLIST_CONFIG_DIR/contacts, bailing out"; + } + } else { # directory exists, does the conf file? if (-e $list_conf) { @@ -97,8 +103,8 @@ sub new_list { # of zaddrs into a file, if they want. We sync/serialize to list.json # each time we run # hust list contacts? - # TODO: still in flux + # ~/.hush/list/contacts/ # ~/.hush/list/LIST_NAME/ # ~/.hush/list/LIST_NAME/list.conf - list-specific config items # ~/.hush/list/LIST_NAME/members.txt - list member zaddrs, one per line