Some file manager or something is leaving strange .directory files in

inconvenient places.  Ignore them.

Thanks to Hawkwind for helping track this down.


SVN revision: 26697
This commit is contained in:
David Walter Seikel 2006-10-19 19:37:26 +00:00
parent 2d6e2acf4b
commit 76047452a6
1 changed files with 2 additions and 1 deletions

View File

@ -426,7 +426,8 @@ e_app_new(const char *path, int scan_subdirs)
snprintf(buf, sizeof(buf), "%s/.directory", path);
if (ecore_file_exists(buf))
e_app_fields_fill(a, buf);
else
/* Not all .directory files are created equal, some unknown file manager can create bogus ones. */
if (!a->filled)
{
a->name = evas_stringshare_add(ecore_file_get_file(a->path));
a->filled = 1;