-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmore_print.c
28 lines (25 loc) · 1.22 KB
/
more_print.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* more_print.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ihermell <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/28 18:29:58 by ihermell #+# #+# */
/* Updated: 2014/12/03 10:32:09 by ihermell ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_ls.h"
void print_printable_dir(t_data *data_lst)
{
t_data *print_lst;
if (g_flags[FLAG_A])
print_lst = data_lst;
else if (g_flags[FLAG_AA])
print_lst = lst_exclude(data_lst, &is_tree_dir);
else
print_lst = lst_exclude(data_lst, &is_hidden);
print_data_lst(print_lst);
if (!g_flags[FLAG_A])
lst_pseudo_free(print_lst);
}