~elementary-pantheon/contractor/master

« back to all changes in this revision

Viewing changes to src/FileEnumerator.vala

  • Committer: Victor Martinez
  • Date: 2013-06-20 21:10:16 UTC
  • Revision ID: git-v1:072fe6ee6317d3ce46339c9455024cf371670a05
Use g_file_get_child instead of g_file_get_child_for_display_name to avoid issues with encoding since the latter is only meant to work with UTF-8 strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
            while ((f = enumerator.next_file ()) != null) {
47
47
                unowned string name = f.get_name ();
48
48
                var file_type = f.get_file_type ();
49
 
                var child = directory.get_child_for_display_name (name);
 
49
                var child = directory.get_child (name);
50
50
 
51
51
                if (file_type == FileType.REGULAR) {
52
52
                    if (ContractFile.is_valid_filename (name))