|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Directory create: 'something' "bug" |
Date: | Wed, 06 Sep 2006 13:24:58 +0200 |
User-agent: | Thunderbird 1.5.0.5 (Macintosh/20060719) |
st> Directory class sourceCodeAt: #create:! 'create: dirName "Create a directory named dirName." ^(VFS.VFSHandler for: (File pathFor: dirName)) createDir: (File stripPathFrom: dirName) ' eventually i tried st> File pathFor: 'foobar'! '' st> File pathFor: './foobar'! '.'
Yep, I'll add File class>>#pathFor:ifNone: and use it. Thanks to both of you! Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |