Skip to content

Commit

Permalink
Reflect directory-p flag in fakir--file-attribs
Browse files Browse the repository at this point in the history
  • Loading branch information
leoc committed Apr 18, 2014
1 parent 12b8cb6 commit c5bcd01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions fakir-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ work. That seems better than trying to use a binary."
:filename "somefile"
:directory "/home/dir"
:mtime "Mon, Feb 27 2012 22:10:21 GMT")))
(should (equal
(list nil t t t t '(20299 65357))
(fakir--file-attribs ef))))
(let ((ef (make-fakir-file
:filename "somedir"
:directory "/home/dir"
:mtime "Mon, Feb 27 2012 22:10:21 GMT"
:directory-p t)))
(should (equal
(list t t t t t '(20299 65357))
(fakir--file-attribs ef)))))
Expand Down
3 changes: 2 additions & 1 deletion fakir.el
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ If RAW is t then return the raw value, a string."
Currently WE ONLY SUPPORT MODIFIED-TIME."
(fakir--file-check file)
(list t t t t t
(list (fakir-file-directory-p file)
t t t t
(fakir--file-mod-time file)))

(defun fakir--file-home (file)
Expand Down

0 comments on commit c5bcd01

Please sign in to comment.