projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c37d75
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 19 Jun 2018 02:18:22 +0000
(10:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 19 Jun 2018 02:18:22 +0000
(10:18 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
4e65238
..
c3fd8fc
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-969,17
+969,21
@@
public class Strip : GLib.Object {
continue;
}
continue;
}
-
+ var ds = next_file.get_display_name();
if (next_file.get_file_type() != FileType.DIRECTORY) {
if (next_file.get_file_type() != FileType.DIRECTORY) {
- if (next_file.get_display_name()[0] == ',') {
+
+
+ if (ds[0] == ',') {
continue;
}
// other files to ignore?
continue;
}
// other files to ignore?
-
- this.scan_file(basepath + subpath , next_file.get_display_name());
+ if (Regex.match_simple (".tgz$", ds)) {
+ continue;
+ }
+ this.scan_file(basepath + subpath , ds);
if(this.has_replaced) {
if(this.has_replaced) {
- this.report_state("After scanning %s/%s".printf(basepath + subpath ,
next_file.get_display_name()
));
+ this.report_state("After scanning %s/%s".printf(basepath + subpath ,
ds
));
}
continue;
}
}
continue;
}
@@
-990,7
+994,7
@@
public class Strip : GLib.Object {
- var ds = next_file.get_display_name();
+
// not really needed?? - we are storing attachments in a seperate location now...
if (ds[0] == '.') {
next_file = null;
// not really needed?? - we are storing attachments in a seperate location now...
if (ds[0] == '.') {
next_file = null;