Re: checking for presence of files
- To: mathgroup at smc.vnet.net
- Subject: [mg24509] Re: checking for presence of files
- From: Harald Giese <giese at ifm.uni-hamburg.de>
- Date: Thu, 20 Jul 2000 03:01:46 -0400 (EDT)
- Organization: Institut fuer Meereskunde, Universitaet Hamburg
- References: <8l3f5d$ksj@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Otto Linsuain wrote: > > Hi all. I know the answer to this could be system-dependent. I work > with Mathematica 4.0 on unix workstations. > > I wonder if it is possible to define a function that checks if a file > exists in your disk, something like > > FindFile[filename_String] = True if the file exists, False otherwise. > Hi Otto, You have been close to the answer: FileNames[filename_String] != {} Regards, Harald -- Harald Giese Email: giese at ifm.uni-hamburg.de Phone: +49 (0)40 42838 5796; Fax: +49 (0)40 5605724 Institut fuer Meereskunde der Universitaet Hamburg (Institute of Oceanography of the University of Hamburg) Troplowitzstrasse 7, D-22529 Hamburg