Re: Import files on accessible URL and save in
- To: mathgroup at smc.vnet.net
- Subject: [mg122775] Re: Import files on accessible URL and save in
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Thu, 10 Nov 2011 06:52:54 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201111050945.EAA10302@smc.vnet.net>
- Reply-to: drmajorbob at yahoo.com
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 at 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 at yahoo.com
- References:
- Import files on accessible URL and save in local machine.
- From: Gy Peng <hitphyopt@gmail.com>
- Import files on accessible URL and save in local machine.