comparison src/view_dir.c @ 945:fd84847c8231

speed-up of directory notification on deleting large number of files
author nadvornik
date Sun, 27 Jul 2008 13:46:24 +0000
parents b483d8cdedb6
children 8c6a8002b1d5
comparison
equal deleted inserted replaced
944:e73552743bda 945:fd84847c8231
1039 { 1039 {
1040 ViewDir *vd = data; 1040 ViewDir *vd = data;
1041 gboolean refresh; 1041 gboolean refresh;
1042 gchar *base; 1042 gchar *base;
1043 1043
1044 if (!isdir(fd->path) && isname(fd->path)) return; 1044 if (!S_ISDIR(fd->mode)) return; /* this gives correct results even on recently deleted files/directories */
1045 1045
1046 base = remove_level_from_path(fd->path); 1046 base = remove_level_from_path(fd->path);
1047 1047
1048 if (vd->type == DIRVIEW_LIST) 1048 if (vd->type == DIRVIEW_LIST)
1049 { 1049 {