right func to check for dir
authorSebastian Dransfeld <sd@tango.flipp.net>
Wed, 24 Nov 2010 21:15:04 +0000 (21:15 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Wed, 24 Nov 2010 21:15:04 +0000 (21:15 +0000)
SVN revision: 54958

legacy/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c

index 16410a0393b52a405ea4b02afe8508a23c703a75..9cab3c70541a34226c0f9607a1b8f2b5e92d2b80 100644 (file)
@@ -300,7 +300,7 @@ _ecore_file_monitor_poll_check(Ecore_File_Monitor *em)
 
                        f->name = strdup(file);
                        f->mtime = ecore_file_mod_time(buf);
-                       f->is_dir = ecore_file_mod_time(buf);
+                       f->is_dir = ecore_file_is_dir(buf);
                        if (f->is_dir)
                          event = ECORE_FILE_EVENT_CREATED_DIRECTORY;
                        else