[latexila] CleanBuildFiles: don't take into account hidden files
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] CleanBuildFiles: don't take into account hidden files
- Date: Wed, 22 Jun 2011 20:17:57 +0000 (UTC)
commit 50a03974ea7837e55f7b5e81b3c3dd7598e60add
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Wed Jun 22 20:31:26 2011 +0200
CleanBuildFiles: don't take into account hidden files
src/clean_build_files.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/clean_build_files.vala b/src/clean_build_files.vala
index adadf76..94e672b 100644
--- a/src/clean_build_files.vala
+++ b/src/clean_build_files.vala
@@ -139,6 +139,12 @@ public class CleanBuildFiles : GLib.Object
break;
string name = info.get_name ();
+
+ // don't take into account hidden files and directories
+ // example: Git have a *.idx file in the .git/ directory
+ if (name[0] == '.')
+ continue;
+
File file = directory.get_child (name);
FileType type = info.get_file_type ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]