summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-03-24 17:28:21 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-03-24 17:28:21 +0100
commit3a7baab7344d933e9534716ddd9ff88645dcecfa (patch)
treede5c461b25307ad3464324d242e70815f5f20131 /bin
parenta1a881bde53bc5eddcd7be4c52a9ce8053ca9c53 (diff)
begin work on recursive mode. isn't recursive yet, but does list directories.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dthumb13
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/dthumb b/bin/dthumb
index 0ba3e89..ab56865 100755
--- a/bin/dthumb
+++ b/bin/dthumb
@@ -27,6 +27,7 @@ GetOptions(
no-names|n
quality|q=i
recreate|r
+ recursive|R
size|d=i
spacing|s=f
title|t=s
@@ -46,16 +47,16 @@ if ( $opt->{help} ) {
die("Please see 'perldoc -F $0' or 'man dthumb'\n");
}
-$dthumb->read_directories();
-$dthumb->create_files();
-$dthumb->delete_old_thumbnails();
+$dthumb->read_directories;
+$dthumb->create_files;
+$dthumb->delete_old_thumbnails;
$timer->attr(
min => 1,
- max => scalar $dthumb->get_files(),
+ max => scalar $dthumb->get_files,
);
-for my $file ( $dthumb->get_files() ) {
+for my $file ( $dthumb->get_files ) {
print STDERR $timer->report(
"\r\e[KCreating Thumbnails: %p done, %L elapsed, %E remaining", $id++,
);
@@ -65,7 +66,7 @@ for my $file ( $dthumb->get_files() ) {
}
print "\n";
-$dthumb->write_out_html();
+$dthumb->write_out_html;
__END__