func GetFileType(fileName string) string {
	fileInfo, _ := os.Stat(fileName)
	switch mode := fileInfo.Mode(); {
	case mode.IsDir():
		return folderConst
	case mode.IsRegular():
		if strings.ToUpper(filepath.Ext(fileName)) == ".ZIP" {
			return archiveConst
		}
	}
	return fileConst
}
// GetFileType - gets the file type
gets the file type
// GetFileType - gets the file type
func GetFileType(fileName string) string {
	fileInfo, _ := os.Stat(fileName)
	switch mode := fileInfo.Mode(); {
	case mode.IsDir():
		return folderConst
	case mode.IsRegular():
		if strings.ToUpper(filepath.Ext(fileName)) == ".ZIP" {
			return archiveConst
		}
	}
	return fileConst
}
func GetFileType ( fileName string ) string { fileInfo , _ := os . Stat ( fileName ) switch mode := fileInfo . Mode ( ) ; { case mode . IsDir ( ) : return folderConst case mode . IsRegular ( ) : if strings . ToUpper ( filepath . Ext ( fileName ) ) == " " { return archiveConst } } return fileConst }
gets the file type
gets the file type