19:06:13pycgiven a relative directory path say "foo/bar/baz/", what is a good way to extract "baz/" out of it? Is there a pathname function to do that? Looking for something similar to shell's basename foo/bar/baz/.
19:06:30Xachpyc: look at the pathname-directory components
19:13:42pycXach: thanks. so I arrived at: (last (pathname-directory "/foo/bar/baz")). It returns "baz". How can I force it to become "baz/" so that it represents a directory path?
19:29:04Alfrpyc, as you seem to have decided to go down the pathname rabbit hole w/ all of its "Complicated defaulting behavior", you might consider reading:
0:27:34White_Flameso I'll ask again if it ceases to :)
0:27:53jasomWhite_Flame: that was gong to be my tentative recommendation if you don't need DTDs
0:28:11jasomtentative as in "I haven't used it, but it's where I would start if I needed one"
0:29:07White_Flamea big lack in cliki is no voting/annotation about how the many libs compare relative to each other
0:29:36jasomIt's a wiki, so one could add such an annotation
0:30:14jasomI think "the number of people who read cliki and have used an XML library in the past 10 years" is probably too small for voting to be useful?
0:37:58jasomhttps://plaster.tymoon.eu/view/2319#2319 <-- whichever you decide on, make sure that this doesn't work
0:39:06jasomWith CXML, that will include the contents of /etc/passwd in the resulting parse (but specifying an entity-resolver that always throws an error will prevent that)
0:40:53jasomat least nobody wired an http client into cxml, so out-of-the-box it won't let you make arbitrary http requests, unlike many other XML parsers