Skip Menu |
 

This queue is for tickets about the File-Fetch CPAN distribution.

Report information
The Basics
Id: 111619
Status: open
Priority: 0/
Queue: File-Fetch

People
Owner: Nobody in particular
Requestors: bcontreras [...] eead.csic.es
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: problem with filename in File::Fetch ?
Date: Mon, 1 Feb 2016 13:37:08 +0100
To: bug-file-fetch [...] rt.cpan.org
From: Bruno Contreras Moreira <bcontreras [...] eead.csic.es>
Download (untitled) / with headers
text/plain 832b
Hi, I have been using File::Fetch and seem to have found a problem when handling a URL which does not contain a file name, but rather some params. This is the code: my $ff = File::Fetch->new(uri=>"http://www.ncbi.nlm.nih.gov/Traces/wgs/?download=NC_010159.1.gbff.gz"); my $content; if($ff->fetch( to => \$content )){ # ... } This fails on my system, even using to => '/tmp', with a message such as: "Cannot rename 'FileFetch.HhO9er/-2296' to 'FileFetch.HhO9er/': Not a directory" As I am not able to control the name of the output file I cannot proceed, thanks for your support, Bruno -- Bruno Contreras Moreira Investigador ARAID Estación Experimental de Aula Dei / CSIC Av.Montañana 1.005, 50059 Zaragoza (España) Tel:(+34) 976716089 Fax:(+34) 976716145 bcontreras@eead.csic.es http://www.eead.csic.es/compbio
Download (untitled) / with headers
text/plain 828b
On 2016-02-01 07:37:37, bcontreras@eead.csic.es wrote: Show quoted text
> Hi, I have been using File::Fetch and seem to have found a problem > when > handling a URL which does not contain a file name, but rather some > params. > This is the code: > > my $ff = > File::Fetch- > > my $content; > if($ff->fetch( to => \$content )){ > # ... > } > > This fails on my system, even using to => '/tmp', with a message such > as: > > "Cannot rename 'FileFetch.HhO9er/-2296' to 'FileFetch.HhO9er/': Not a > directory" > > As I am not able to control the name of the output file I cannot > proceed,
I can reproduce the problem with File::Fetch 0.32, but bot with 0.48. Maybe this change fixed it: https://metacpan.org/source/BINGOS/File-Fetch-0.48/CHANGES#L31


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.