reworking database, init and add commands

This commit is contained in:
2020-07-02 15:00:30 -04:00
parent 6379c73e38
commit 5af55ed62e
15 changed files with 220 additions and 295 deletions

View File

@@ -25,7 +25,7 @@ func validateFileType(path string, inputType string) error {
return fmt.Errorf("unable to read file, corrupted? %s", err)
}
if fileInfo.IsDir() {
if inputType == "folder" {
if inputType == "folder" || inputType == "all" {
return nil
} else {
return fmt.Errorf("folder flag was used, but input is not a folder, will not continue")