Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch slurp writes to current working directory #6

Open
keiranmraine opened this issue Mar 10, 2015 · 1 comment
Open

fetch slurp writes to current working directory #6

keiranmraine opened this issue Mar 10, 2015 · 1 comment

Comments

@keiranmraine
Copy link

Hi,

When using the slurp to scalar functionality although tempdir is used it creates the temp folder in the current working directory:

https://github.com/jib/file-fetch/blob/master/lib/File/Fetch.pm#L454

This may be just that the setting of tempdir_root is not documented, but if that value is not defined could an alternative path be used which uses the builtin capabilities of File::Temp to use the appropriate system defined 'tmp' instead (or emulate)?

$to = tempdir( 'FileFetch.XXXXXX', CLEANUP => 1, TMPDIR => 1 );

Regards,
Keiran

@GPHemsley
Copy link

More permanent URL:

$to = tempdir( 'FileFetch.XXXXXX', DIR => $self->tempdir_root, CLEANUP => 1 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants