[Newbies] pathnames

Chris Kassopulo ckasso at sprynet.com
Mon May 1 22:02:14 UTC 2006


I am trying to get a list of the files that are in a
directory using:

'/home/cpulo/data' asFileName fileNames.

Inspecting this line of code shows me that the pathname
is a ByteString which is a subclass of String.  String
has a method called fileNames.

Three questions:

Why does the pathname evaluate as a ByteString?

Why doesn't the ByteString respond to the fileNames message?

How do I do this?


More information about the Beginners mailing list