testing the existance of a file...
Ken Causey
ken at kencausey.com
Wed Mar 15 18:30:23 UTC 2006
If you look at the comment for String>>asFileName it just returns
another String after doing some checks and conversions as needed. What
you want I believe is something like
FileDirectory default fileExists: (filename asFileName).
Where filename is a string containing the filename.
Ken
On Wed, 2006-03-15 at 15:41 +0100, nelson - wrote:
> Hi all,
> i can't figure out how to test the existance of a file. The book
> i'm reading says to use
>
> aFileName exists
>
> but if i create a filename from a string sending the message
>
> aString asFilename
>
> Squeak says that it doesn't understand the exists message..
>
> any help?
>
>
> thanks,
> nelson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060315/2f1601c6/attachment.pgp
More information about the Squeak-dev
mailing list
|