Skip Menu |

This queue is for tickets about the WWW-Google-Images CPAN distribution.

Report information
The Basics
Id: 8217
Status: resolved
Priority: 0/
Queue: WWW-Google-Images

People
Owner: Nobody in particular
Requestors: gerryster [...] gmail.com
Cc:
AdminCc:

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



Subject: Cannot save files to an absolute path
$image->save_content(file => '/tmp/image') saves the image in ./tmp/image instead of /tmp/image. Saving absolutly should be allowed as it is often helpful to queue things up in /tmp for example.
From: gerryster [...] gmail.com
[guest - Tue Nov 2 13:56:44 2004]: Show quoted text
> $image->save_content(file => '/tmp/image') saves the image in > ./tmp/image instead of /tmp/image. Saving absolutly should be > allowed as it is often helpful to queue things up in /tmp for > example. >
This was purely a documentation issue. It is possible to do what I described above. I have attached a patch to document how to specify an absolute path. This patch sould be applied to WWW/Google/Images/Image.pm.
67a68,71 > =item dir => I<$directory> > > Use $directory as a directory path to save the file. If only 'file' is specified, it will be saved in a path relative to the current working directory. > 95a100,103 > > =item dir => I<$directory> > > Use $directory as a directory path to save the file. If only 'file' is specified, it will be saved in a path relative to the current working directory.