in reply to Re^4: saveResources_future and tab in WWW::Mechanize::Chrome
in thread saveResources_future and tab in WWW::Mechanize::Chrome
No, that's the part that works.
The part that fails is in ub fetchResources_future, which doesn't respect any base directory at all currently. There, more or less the same thing has to happen:
... my $duplicates; my $old_target = $target; while( $filenames{ $target }) { $duplicates++; ( $target = $old_target )=~ s!\.(\w+)$!_$duplicates.$ +1!; }; - $names->{ $res->{url} } = $target; + $names->{ $res->{url} } = File::Spec->catfile( $base_dir, + $target ); };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: saveResources_future and tab in WWW::Mechanize::Chrome
by 1nelly1 (Sexton) on May 13, 2020 at 18:20 UTC | |
by 1nelly1 (Sexton) on May 13, 2020 at 20:05 UTC | |
by Corion (Patriarch) on May 13, 2020 at 20:22 UTC | |
by 1nelly1 (Sexton) on May 14, 2020 at 07:48 UTC | |
by Corion (Patriarch) on May 14, 2020 at 10:03 UTC | |
|
In Section
Seekers of Perl Wisdom