diff src/pan-util.c @ 783:d6a7fb4b8e7c

replaced directory path with FileData* dir_fd
author nadvornik
date Tue, 03 Jun 2008 19:44:19 +0000
parents 44128da39e13
children 1646720364cf
line wrap: on
line diff
--- a/src/pan-util.c	Tue Jun 03 15:54:05 2008 +0000
+++ b/src/pan-util.c	Tue Jun 03 19:44:19 2008 +0000
@@ -208,7 +208,7 @@
 	return FALSE;
 }
 
-GList *pan_list_tree(const gchar *path, SortType sort, gint ascend,
+GList *pan_list_tree(FileData *dir_fd, SortType sort, gint ascend,
 		     gint ignore_symlinks)
 {
 	GList *flist;
@@ -216,7 +216,7 @@
 	GList *result;
 	GList *folders;
 
-	filelist_read(path, &flist, &dlist);
+	filelist_read(dir_fd, &flist, &dlist);
 	if (sort != SORT_NONE)
 		{
 		flist = filelist_sort(flist, sort, ascend);
@@ -233,7 +233,7 @@
 		folders = g_list_remove(folders, fd);
 
 		if (!pan_is_ignored(fd->path, ignore_symlinks) &&
-		    filelist_read(fd->path, &flist, &dlist))
+		    filelist_read(fd, &flist, &dlist))
 			{
 			if (sort != SORT_NONE)
 				{