(merge-pathnames #p"/home/jens/" #p"paintings/madonnawiththebigboobies.jpg")
=> #P"/home/jens/madonnawiththebigboobies.jpg"
where is the subfolder 'paintings' gone?
Jens
--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
On Wed, 25 Jul 2007 13:06:24 +0200, Jens Teich wrote:
> (merge-pathnames #p"/home/jens/" #p"paintings/madonnawiththebigboobies.jpg")
> => #P"/home/jens/madonnawiththebigboobies.jpg"
>
> where is the subfolder 'paintings' gone?
Hmm-might it be possible that you accidentally mixed up the order of your
arguments? The signature is '(merge-pathname pname defaults)'. The
documentation says: "Construct a filled in pathname by completing the
unspecified components from the defaults."
In your example the only things unspecified are filename, type and version
- and these did get merged in. Maybe you want:
(merge-pathnames
#p"paintings/madonnawiththebigboobies.jpg" #p"/home/jens/")
=>#P"/home/jens/paintings/madonnawiththebigboobies.jpg"
HTH Ralf Mattes
> Jens
>
Ralf Mattes <··@mh-freiburg.de> writes:
> (merge-pathnames
> #p"paintings/madonnawiththebigboobies.jpg" #p"/home/jens/")
> =>#P"/home/jens/paintings/madonnawiththebigboobies.jpg"
That's exactly what I was looking for, thanks!
Jens
On Wed, 25 Jul 2007 13:57:19 +0200, Jens Teich wrote:
> Ralf Mattes <··@mh-freiburg.de> writes:
>
>> (merge-pathnames
>> #p"paintings/madonnawiththebigboobies.jpg" #p"/home/jens/")
>> =>#P"/home/jens/paintings/madonnawiththebigboobies.jpg"
>
> That's exactly what I was looking for, thanks!
Oh - and I thought you were looking for Madonna's ...
Cheers, RalfD
>
> Jens