Function: trashed-get-trash-size
trashed-get-trash-size is a natively compiled function defined in
trashed.el.
Signature
(trashed-get-trash-size)
Documentation
Issue du shell command to get total Trash Can size.
Source Code
;; Defined in /nix/store/7ppdacjhnynz276lxxnfw8sdz6r2k6h2-emacs-packages-deps/share/emacs/site-lisp/elpa/trashed-20230811.157/trashed.el
(defun trashed-get-trash-size ()
"Issue du shell command to get total Trash Can size."
(let* ((buffer (generate-new-buffer "*Async Shell Command*"))
(process (start-process "trash" buffer shell-file-name
shell-command-switch
(concat "du -s -b " trashed-files-dir))))
(if (processp process)
(set-process-sentinel process 'trashed-get-trash-size-sentinel)
(kill-buffer buffer))))