void ft_print_hidden_file(t_list2 *lnk, t_params *p) { if (lnk->name[0] == '.' && p->a == 1) { if (p->l == 1) { ft_print_info(lnk); } else { ft_putendl(lnk->name); } } }
void ft_print_process(t_list **lst, char *opt) { char max[5]; t_list *tmp; tmp = *lst; if (O_L) { get_max(tmp, max); ft_print_totaldir(tmp); } while (tmp) { if (O_A || ((t_info*)tmp->content)->dirent->d_name[2] != '.') ft_print_info(opt, tmp, max); tmp = tmp->next; } }