bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find: ... -ok rmdir ... No such file or directory


From: Andreas Metzler
Subject: Re: find: ... -ok rmdir ... No such file or directory
Date: Sun, 28 Jul 2019 12:56:53 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On 2019-07-28 積丹尼 Dan Jacobson <address@hidden> wrote:
> Please make this not make error messages.
> # mkdir /tmp/nnn
> # mkdir /tmp/nnn/ooo
> # find /tmp/nnn -type d -ok rmdir {} \;
> < rmdir ... /tmp/nnn > ?
> < rmdir ... /tmp/nnn/ooo > ? y
> find: ‘/tmp/nnn/ooo’: No such file or directory
> # find /tmp/nnn -type d
> /tmp/nnn

> (The user cannot just use "-ok -delete.")
> $ find --version
> find (GNU findutils) 4.6.0.235-f254

quoting texinfo manual:
9.3 Cleaning Up
===============
[...]
   If your 'find' command removes directories, you may find that you get
a spurious error message when 'find' tries to recurse into a directory
that has now been removed.  Using the '-depth' option will normally
resolve this problem.



reply via email to

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