reworking database, init and add commands
This commit is contained in:
		@@ -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")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user