On 1/8/2013 10:33 AM, Ben Coman wrote:
Jimmie Houchin wrote:
Hello,
I was writing a small utility using FileSystem. I had never used
FileSystem before. So I am browsing the code trying to learn where to
start and how to use it.
It took me a little while to learn to do something like:
fs := FileSystem store: (DiskStore activeClass createDefault).
It would be nice if there were an instance creation method like
FileSystem createDefault which would do the above.
My utility was renaming some files. Once I had acquired a
FileSystemDirectoryEntry instance I needed to examine the name.
I see #basename and #fullName. As I browse other classes I see
#childNamesAt: and #pathName, etc.
I was just curious why #basename and not #baseName?
Thanks.
Jimmie
Perhaps wide use of 'basename' as a single word has been previously
established ?
http://en.wikipedia.org/wiki/Basename
Yes, that is established in Unix as per your link. But we are talking
about Pharo Smalltalk.
In the article you mention above they also refer to pathname, while in
FileSystem it is #pathName.
So we are not adhering to the standard of the article mentioned either.
We are not consistent to any standard, ours or theirs.
I can understand previous standards and usages. I can understand legacy.
But FileSystem is Smalltalk and FileSystem is new, replacing legacy code.
I am not advocating anything. Just saying to a new user, with fresh
eyes, it is inconsistent.
Thanks.
Jimmie