Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6329

Re: Import files on accessible URL and save in

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Import files on accessible URL and save in
Date 2011-11-10 12:00 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j9gech$ot9$1@smc.vnet.net> (permalink)
References <201111050945.EAA10302@smc.vnet.net>

Show all headers | View raw


Thanks for the explanation that the file went away on its own. I'd guessed  
as much, but confirmation is helpful.

> That location comes from Java, as the value of the java.io.tmpdir  
> property. It is a truly bizarre path, but that is a MacOSX-ism.

No, that would be a Java-ism ON the Mac, with Mathematica doing nothing to  
remedy the situation... as it clearly could, or the second argument  
wouldn't be possible. Files created in Mathematica usually go into my  
/username or working directory, and I see no reason that shouldn't apply  
to FetchURL as well.

Wherever blame (or credit?) lies, I can safely say that not once, in 41  
years of computing, have I EVER wanted to create or download a file where  
I couldn't see it.

Bobby

On Wed, 09 Nov 2011 12:42:13 -0600, Todd Gayley <tgayley@wolfram.com>  
wrote:

> At 10:04 AM 11/9/2011, DrMajorBob wrote:
>> But this also fails:
>>
>> "/private/var/folders/kY/kYL-hxebGaefEKwlddWc3++++TM/-Tmp-/\
>> Temp7483389857745393361___www.wolfram.com" // DeleteFile
>>
>> $Failed
>>
>> DeleteFile::nffil: File not found during
>> DeleteFile[/private/var/folders/kY/kYL-hxebGaefEKwlddWc3++++TM/-Tmp-/Temp7483389857745393361___www.wolfram.com].  
>> It strikes me as a strange place to import files by default (on a Mac),
>> where a non-Unix expert can't easily deal with them.
>
>
> Bobby,
>
> The message indicates that the file is already gone. The file is in a  
> temporary location, and doesn't survive past the end of the Mathematica  
> session.
>
> That location comes from Java, as the value of the java.io.tmpdir  
> property. It is a truly bizarre path, but that is a MacOSX-ism. It is  
> equally as invisible in the Finder as Mathematica's $TemporaryDirectory  
> (/tmp), which is arguably a better choice for FetchURL to use. If you  
> don't like the default location, use CopyFile after downloading to put  
> it where you want, or, even better, use the second argument of FetchURL  
> to pick the location you want.
>
>
> Todd Gayley
> Wolfram Research
>
>
>


-- 
DrMajorBob@yahoo.com

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Import files on accessible URL and save in DrMajorBob <btreat1@austin.rr.com> - 2011-11-10 12:00 +0000

csiph-web