forked from toolshed/abra
refactor: added more comments to functions
many more are required but in too tired to do more
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user