Browse code
feat: store feed reference path in terms of its directory
fiddlerwoaroof authored on 14/10/2022 03:08:02
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -21,6 +21,9 @@ |
21 | 21 |
:url url |
22 | 22 |
feed-data)) |
23 | 23 |
|
24 |
+(defun directory-of (pathname) |
|
25 |
+ (make-pathname :directory (pathname-directory pathname))) |
|
26 |
+ |
|
24 | 27 |
(defmethod yason:encode-slots progn ((object feed-reference)) |
25 | 28 |
(let ((title (title object)) |
26 | 29 |
(path (path object))) |
... | ... |
@@ -28,7 +31,7 @@ |
28 | 31 |
(when title |
29 | 32 |
(yason:encode-object-element "title" title)) |
30 | 33 |
(when path |
31 |
- (yason:encode-object-element "path" path)))) |
|
34 |
+ (yason:encode-object-element "path" (directory-of path))))) |
|
32 | 35 |
|
33 | 36 |
(defmethod yason:encode-slots progn ((object feed-index)) |
34 | 37 |
(with-accessors ((pull-time pull-time) (references references)) object |