unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: disk-usage
Date: Tue, 19 Feb 2019 21:44:15 +0200	[thread overview]
Message-ID: <834l8zimwg.fsf@gnu.org> (raw)
In-Reply-To: <877edvr30g.fsf@ambrevar.xyz> (message from Pierre Neidhardt on Tue, 19 Feb 2019 20:29:03 +0100)

> From: Pierre Neidhardt <mail@ambrevar.xyz>
> Cc: emacs-devel@gnu.org
> Date: Tue, 19 Feb 2019 20:29:03 +0100
> 
> > Still, using directory-files-and-attributes etc. would be more
> > portable than doing it with 'find' and 'du'.
> 
> That's what I do, actually.  I've provided two "listing" functions (customizable):
> 
> - disk-usage--directory-size-with-emacs: use `directory-files-and-attributes'
>   recursively everywhere.  This is portable but very slow.
> 
> - disk-usage--directory-size-with-du: This uses `directory-files-and-attributes'
>   on the root folder to get the size of its direct subfiles, then `du -sb' on
>   the remaining subfolders.  This is much faster.
> 
> Makes sense?

AFAICT, which one to use is left to the user, but I think it should be
automatically deduced by the package, in particular depending on
whether 'find' and 'du' are available.



  reply	other threads:[~2019-02-19 19:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19  8:49 [ELPA] New package: disk-usage Pierre Neidhardt
2019-02-19 15:55 ` Clément Pit-Claudel
2019-02-19 16:17 ` Eli Zaretskii
2019-02-19 16:26   ` Pierre Neidhardt
2019-02-19 17:25     ` Eli Zaretskii
2019-02-19 19:29       ` Pierre Neidhardt
2019-02-19 19:44         ` Eli Zaretskii [this message]
2019-02-19 19:55           ` Pierre Neidhardt
2019-02-19 20:21 ` Michael Albinus
2019-02-19 20:26   ` Pierre Neidhardt
2019-02-19 20:39     ` Michael Albinus
2019-02-19 20:58       ` describe-mode bindings (was: [ELPA] New package: disk-usage) Stefan Monnier
2019-02-19 21:29         ` Clément Pit-Claudel
2019-02-19 21:05       ` [ELPA] New package: disk-usage Pierre Neidhardt
2019-02-20  8:08         ` Pierre Neidhardt
2019-02-20 13:28           ` Stefan Monnier
2019-02-24 17:14           ` Pierre Neidhardt
2019-02-24 19:33             ` Pierre Neidhardt
2019-02-24 20:24               ` Stefan Monnier
2019-02-26 11:59             ` Michael Albinus
2019-02-26 15:08               ` Pierre Neidhardt
2019-02-26 15:25                 ` Michael Albinus
2019-03-01 17:51                   ` Pierre Neidhardt
2019-03-01 23:28                     ` Michael Albinus
2019-03-02 13:51                       ` Pierre Neidhardt
2019-03-03 10:28                     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=834l8zimwg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).