[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] calling pathname-directory with trailing slash
From: |
Andre Kuehne |
Subject: |
[Chicken-users] calling pathname-directory with trailing slash |
Date: |
Fri, 13 Apr 2007 22:23:08 +0200 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070221) |
Hi
#1> (pathname-directory "a/b")
"a"
#2> (pathname-directory "a/b/")
"a/b/"
If you start with a path which has no trailing slash, you can pass the result of calling
pathname-directory repeatedly to the function to get one directory level up at a time.
But if you start with a trailing slash, you are stuck.
Wouldn't returning "a/b"in #2 be more consistent?
Regards
Andre Kühne
- [Chicken-users] calling pathname-directory with trailing slash,
Andre Kuehne <=