[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: disk-usage
From: |
Eli Zaretskii |
Subject: |
Re: [ELPA] New package: disk-usage |
Date: |
Tue, 19 Feb 2019 21:44:15 +0200 |
> From: Pierre Neidhardt <address@hidden>
> Cc: address@hidden
> 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.
Re: [ELPA] New package: disk-usage, Michael Albinus, 2019/02/19
- Re: [ELPA] New package: disk-usage, Pierre Neidhardt, 2019/02/19
- Re: [ELPA] New package: disk-usage, Pierre Neidhardt, 2019/02/19
- Re: [ELPA] New package: disk-usage, Pierre Neidhardt, 2019/02/20
- Re: [ELPA] New package: disk-usage, Stefan Monnier, 2019/02/20
- Re: [ELPA] New package: disk-usage, Pierre Neidhardt, 2019/02/24