mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Added support for .. in directory paths
This commit is contained in:
parent
58c4444e8a
commit
b320b02aac
@ -48,8 +48,8 @@
|
||||
(loop
|
||||
(let ((slash (position #\/ filename)))
|
||||
(if slash
|
||||
(progn
|
||||
(push (subseq filename 0 slash) directories)
|
||||
(let ((dir-name (subseq filename 0 slash)))
|
||||
(push (if (equal dir-name "..") :up dir-name) directories)
|
||||
(setq filename (subseq filename (1+ slash))))
|
||||
(return (if directories
|
||||
(make-pathname :directory (cons ':relative (nreverse directories)) :name filename #+lispworks :type #+lispworks "lisp")
|
||||
|
Loading…
Reference in New Issue
Block a user