refactor: added more comments to functions

many more are required but in too tired to do more
This commit is contained in:
2021-08-02 08:02:18 +01:00
parent 38d8b51bd5
commit fa16ce20eb
2 changed files with 19 additions and 2 deletions

View File

@ -100,6 +100,7 @@ func getAllFoldersInDirectory(directory string) ([]string, error) {
return folders, nil
}
// EnsureAbraDirExists checks for the abra config folder and throws error if not
func EnsureAbraDirExists() error {
if _, err := os.Stat(ABRA_DIR); os.IsNotExist(err) {
if err := os.Mkdir(ABRA_DIR, 0777); err != nil {