emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]