Next: , Up: File Directories   [Index]


7.1.1 list-directory

Function: list-directory dirname &optional verbose

Display a list of files in or matching DIRNAME, a la ‘ls’. When called interactively, a prefix argument switches on verbose mode.

DIRNAME

a directory file name; wildcard characters can be included; it will be globbed by the shell if necessary;

VERBOSE

if non-nil, supply the {{{option (-l)}}} switch.

The variables:

  • list-directory-brief-switches
  • list-directory-verbose-switches

control which switches are passed to the ls command in brief and verbose listings.

The variables:

  • directory-free-space-program (df)
  • directory-free-space-args (args to pass to df)

customize the display of free space on the disk containing the directory in verbose mode.