feat: add abra dir creation function
This commit is contained in:
parent
1187d6bfd5
commit
f7b085dfa2
@ -299,3 +299,12 @@ func getAllFoldersInDirectory(directory string) ([]string, error) {
|
||||
}
|
||||
return folders, nil
|
||||
}
|
||||
|
||||
func EnsureAbraDirExists() error {
|
||||
if _, err := os.Stat(ABRA_DIR); os.IsNotExist(err) {
|
||||
if err := os.Mkdir(ABRA_DIR, 0777); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user