Re: path-pathname? too embarrassed to call it...



On 2008-09-08, Kenny <kentilton@xxxxxxxxx> wrote:
...pathname-pathname? Talk about a stutter. Paging Major Major.

I can't find a PATH-PATHNAME in the CLHS. Where did you find this?

There is a PATHNAME-NAME accessor for the PATHNAME class, to get the
name component; is that what you are thinking of?

A better name for this slot would be BASENAME (borrowing from Unix).

But you see, the whole class should just have been called PATH. NAME is
redundant in PATHNAME. A PATH is generally understood to designate (something
akin to name) a location. See, this makes sense. You have a path, which has
a name. (As well as a directory, type, and other attributes).

And what was wrong with pathname-sans-filename? Too accurate and easy

What's wrong with PATHNAME-DIRECTORY?

Note that the basename might not be a file, so ``sans-filename'' is inaccurate.

to remember? Or have the English still not gotten over all those wars
with France?

Gotten over? Are you saying they lost some?
.



Relevant Pages

  • Re: equivalent of Rubys Pathname?
    ... it would be every other function that takes a pathname as ... simply present that kit, insulating against filesystem differences. ... And after 20 years of growth, Python still has ... no Pathname class. ...
    (comp.lang.python)
  • Re: alias(rm as mv)
    ... basename even though they came from different directories. ... Best bet - append the file being "trashed" to an existing gzipped tar ... This way the full pathname can be saved with each file nad each ...
    (RedHat)
  • dirname and basename errors
    ... I encountered a strange behavior of dirname and basename: ... basename shoud return an empty string IMHO. ... How can I obtain correct answers from them with a pathname without a real ...
    (comp.os.linux.misc)
  • Re: Newbie problem with file::find
    ... Rewrite it as either ... to conditionally print the full pathname. ... Remember that $_ has the basename. ...
    (comp.lang.perl.modules)