MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Import files on accessible URL and save in

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122774] Re: Import files on accessible URL and save in
  • From: Todd Gayley <tgayley at wolfram.com>
  • Date: Thu, 10 Nov 2011 06:52:43 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201111050945.EAA10302@smc.vnet.net>

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






  • Prev by Date: Re: Where are all my "memories" gone?
  • Next by Date: Re: Question about Manipulate
  • Previous by thread: Re: Import files on accessible URL and save in
  • Next by thread: Re: Import files on accessible URL and save in