Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/epsilon
Dir : e17/libs/epsilon/src/bin Modified Files: epsilon_thumb_test.c Log Message: - make sure we get a directory as the argument and not a file - print out the correct lib name for the complete message =================================================================== RCS file: /cvs/e/e17/libs/epsilon/src/bin/epsilon_thumb_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- epsilon_thumb_test.c 13 Apr 2006 22:39:34 -0000 1.2 +++ epsilon_thumb_test.c 31 May 2006 00:31:05 -0000 1.3 @@ -36,7 +36,7 @@ double start, end; if (argc < 2) { - printf ("Usage: epsilon_thumb_test <path>\n"); + printf ("Usage: epsilon_thumb_test <directory path>\n"); exit(0); } @@ -44,6 +44,11 @@ thumb_done = ecore_event_handler_add(EPSILON_EVENT_DONE, thumb_complete_cb, NULL); + if (!ecore_file_is_dir(argv[1])) { + printf("Need a directory\n"); + exit(-1); + } + files = ecore_file_ls(argv[1]); start = ecore_time_get(); @@ -63,7 +68,7 @@ ecore_main_loop_begin(); end = ecore_time_get(); - printf("\nEcore Thumb completed in %g seconds\n\n", end - start); + printf("\nEpsilon Thumb completed in %g seconds\n\n", end - start); epsilon_shutdown(); #if 0 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs