On Wed, 2010-10-06 at 02:11 +0200, Attila Lendvai wrote:
Stelian, i still think that it's not the right way to deal with directories...
i repeatedly struggle due to this behavior: (iolib.pathnames:file-path-directory (iolib.pathnames:file-path "/tmp/")) => (:ROOT)
What's the problem exactly ?
i understand how posix behaves, but i think it's unrelated when it comes to file-paths dropping the leading slashes. some posix C calls are not the same as a high-level library storing separate path components internally in an object and providing such high-level functions as merging...
imho, it should be either that:
- we go the posix way, but then don't define high level functions
like file-path-directory
f-p-d is just the equivalent of the shell command "dirname"
- do define a file-path-directory, but make it so that:
(iolib.pathnames:file-path-directory (iolib.pathnames:file-path "/tmp/")) => (:ROOT "tmp")
this is not what dirname does