use -follow when invoking find
authorgc <gc>
Fri, 29 Jul 2005 20:54:25 +0000 (20:54 +0000)
committergc <gc>
Fri, 29 Jul 2005 20:54:25 +0000 (20:54 +0000)
bin/booh
bin/booh-backend

index e2488f238907116576d0f1d6be1777aa8b49daee..f224876f104883a9e6a6b07cc94694dd214f7969 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -2228,7 +2228,7 @@ def new_album
                     src_nb_thread = Thread.new {
                         gtk_thread_protect { src_nb.set_markup(utf8(_("<span size='small'><i>processing...</i></span>"))) }
                         total = { 'image' => 0, 'video' => 0, nil => 0 }
-                        `find '#{from_utf8(src_nb_calculated_for)}' -type d`.each { |dir|
+                        `find '#{from_utf8(src_nb_calculated_for)}' -type d -follow`.each { |dir|
                             if File.basename(dir) =~ /^\./
                                 next
                             else
index 7a469590808c7801271ae427da4ff8d4e7c2274b..6bc3e2268940f5a0002d1dbb11d5631a5b4e2eb4 100755 (executable)
@@ -530,7 +530,7 @@ def walk_source_dir
         optxpath[elem.attributes['path']] = elem
     }
 
-    examined_dirs = $mode == 'merge_config_onedir' ? [ $onedir ] : `find '#{$source}' -type d`.sort
+    examined_dirs = $mode == 'merge_config_onedir' ? [ $onedir ] : `find '#{$source}' -type d -follow`.sort
     info("directories: #{examined_dirs.length}, sizes: #{$images_size.length}")
 
     examined_dirs.each { |dir|