Commit 977943be3c5ddd386f2498e670c80f636986c4be

Thomas de Grivel 2018-06-08T01:00:30

fix directory handler

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/thot.lisp b/thot.lisp
index 8f188ab..23ccfb7 100644
--- a/thot.lisp
+++ b/thot.lisp
@@ -415,9 +415,10 @@ The requested url "
       (format t "dir ~S local ~S remote ~S~%" dir local remote)
       (force-output))
     (when (prefix-p remote dir)
-      (let ((subdir (subseq dir (length remote))))
+      (let* ((subdir (subseq dir (length remote)))
+             (local-path (str local subdir)))
         (when (debug-p :directory)
-          (format t "subdir ~S~%" subdir)
+          (format t "subdir ~S local-path ~S~%" subdir local-path)
           (force-output))
         (with-stat (stat nil) local-path
           (when (s-isdir (stat-mode stat))