Stephen wrote:
> Ah, how does one create a FilePath instance?
>
> I can't find any class "instance creation" methods in the FilePath
> documentation.
FilePath is abstract, you use "File name: 'aaa'" or "'xxx' asFile" or
"File path: 'bbb'".
The difference between #name: and the others is that #name: forces the
File to be on an absolute path. Example:
Directory working: '/usr/bin'.
a := File name: 'gst'. " ==> <File /usr/bin/gst>"
b := File path: 'gst'. " ==> <File gst>
Directory working: Directory home.
a size printNl.
b size printNl. "No such flie or directory"
Paolo
_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk