Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6328
| From | Todd Gayley <tgayley@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Import files on accessible URL and save in |
| Date | 2011-11-10 11:59 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j9gebi$ose$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Import files on accessible URL and save in Todd Gayley <tgayley@wolfram.com> - 2011-11-10 11:59 +0000
csiph-web