~unity-team/unity-lens-files/trunk

« back to all changes in this revision

Viewing changes to src/daemon.vala

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2011-05-02 20:49:01 UTC
  • mfrom: (170.1.2 trunk)
  • Revision ID: mikkel.kamstrup@gmail.com-20110502204901-q01asbwdt91a3na1
Merge Olver Sauder's branch lp:~sao/unity-place-files/ignore-hidden-files:

 * Don't show hidden files (bug #756280: Files lense should ignore hidden files)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1293
1293
              
1294
1294
              /* Don't check existence on non-native files as http:// and
1295
1295
               * friends are *very* expensive to query */
1296
 
              if (file.is_native())
1297
 
                if (!file.query_exists ())
 
1296
              if (file.is_native()) {
 
1297
                // hidden files should be ignored
 
1298
                try {
 
1299
                  FileInfo info = file.query_info(FILE_ATTRIBUTE_STANDARD_IS_HIDDEN, 0, null);
 
1300
                  if (info.get_is_hidden())
 
1301
                    continue;
 
1302
                } catch (GLib.Error e) {
 
1303
                  // as error occurred file must be missing therefore ignoring it
1298
1304
                  continue;
 
1305
                }
 
1306
              }
1299
1307
                  
1300
1308
              if (section == Section.FOLDERS)
1301
1309
                {