Subject: bug#71106: dired-do-compress should check before attempting to read directories

From: Eli Zaretskii <[email-masked]>
Date: Wed, 22 May 2024 16:00:23 +0300

> From: Dan Jacobson <[email-masked]>
> Date: Wed, 22 May 2024 14:35:38 +0800
> 
> $ tar tzvf plss00p020_nt00064.tar.gz
> -rw-rw-rw- 0/0        24880644 2010-11-13 01:35 plss00p020.shp
> -rw-rw-rw- 0/0        50551350 2010-11-13 01:35 plss00p020.dbf
> -rw-rw-rw- 0/0          727452 2010-11-13 01:35 plss00p020.shx
> -rw-rw-rw- 0/0           31363 2010-12-03 00:06 plss00p020.txt
> 
> Now in dired, use Z (runs the command dired-do-compress)
> 
> Compress or uncompress plss00p020_nt00064.tar.gz? (y or n) y
> 
> dired-insert-directory: Reading directory: No such file or directory, plss00p020_nt00064
> emacs-version "29.3"

I cannot reproduce this.  I get: "Compress or uncompress: 1 file."
instead.

Did you miss some steps or some other important aspect of the recipe?