src/strip.vala
authorAlan Knowles <alan@roojs.com>
Mon, 7 May 2018 05:42:06 +0000 (13:42 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 7 May 2018 05:42:06 +0000 (13:42 +0800)
src/strip.vala

index ce7edc9..5052c83 100644 (file)
@@ -840,13 +840,20 @@ public class Strip : GLib.Object {
             if (next_file == null) {
                 break;
             }
-
+               
+               
+               if (next_file.get_is_symlink()) {
+                next_file = null;
+                continue;
+            }
+            
 
             if (next_file.get_file_type() != FileType.DIRECTORY) {
                 
                 if (next_file.get_display_name()[0] == ',') {
                        continue;
                }
+               // other files to ignore?
                 
                 this.scan_file(path , next_file.get_display_name());
                                if(this.has_replaced) {
@@ -860,11 +867,7 @@ public class Strip : GLib.Object {
             //        next_file.get_display_name(), next_file.get_file_type());
 
 
-            if (next_file.get_is_symlink()) {
-                next_file = null;
-                continue;
-            }
-            
+        
             var ds = next_file.get_display_name();
             // not really needed?? - we are storing attachments in a seperate location now...
             if (ds[0] == '.') {