Fix error in tramp-smb-handle-insert-directory
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Insert size information only when FULL-DIRECTORY-P is non-nil.
This commit is contained in:
@@ -1073,10 +1073,11 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
|
||||
entries))
|
||||
|
||||
;; Insert size information.
|
||||
(insert
|
||||
(if avail
|
||||
(format "total used in directory %s available %s\n" used avail)
|
||||
(format "total %s\n" used)))
|
||||
(when full-directory-p
|
||||
(insert
|
||||
(if avail
|
||||
(format "total used in directory %s available %s\n" used avail)
|
||||
(format "total %s\n" used))))
|
||||
|
||||
;; Print entries.
|
||||
(mapc
|
||||
|
||||
Reference in New Issue
Block a user