diff src/main.c @ 783:d6a7fb4b8e7c

replaced directory path with FileData* dir_fd
author nadvornik
date Tue, 03 Jun 2008 19:44:19 +0000
parents 3f7a0420c293
children a20ff446347e
line wrap: on
line diff
--- a/src/main.c	Tue Jun 03 15:54:05 2008 +0000
+++ b/src/main.c	Tue Jun 03 19:44:19 2008 +0000
@@ -197,11 +197,14 @@
 {
 	GList *files;
 	gchar *path_parsed;
+	FileData *dir_fd;
 
 	path_parsed = g_strdup(dir);
 	parse_out_relatives(path_parsed);
+	dir_fd = file_data_new_simple(path_parsed);
+	
 
-	if (filelist_read(path_parsed, &files, NULL))
+	if (filelist_read(dir_fd, &files, NULL))
 		{
 		GList *work;
 
@@ -223,6 +226,7 @@
 		}
 
 	g_free(path_parsed);
+	file_data_unref(dir_fd);
 }
 
 static void parse_command_line_process_dir(const gchar *dir, gchar **path, gchar **file,