automake
[Top][All Lists]
Advanced

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

Re: FEATURE REQUEST: make uninstall should delete empty directories.


From: Bob Friesenhahn
Subject: Re: FEATURE REQUEST: make uninstall should delete empty directories.
Date: Mon, 8 Mar 2004 21:21:12 -0600 (CST)

On Fri, 5 Mar 2004, Frederik Fouvry wrote:

>
> ,-- On Wed, 3 Mar, Bob Friesenhahn wrote:
>
> [...]
>
> | It is not always easy to see if a directory is empty. For example,
> | when NFS is being used, sometimes .nfs files are created in the
> | directories, so the directory is not really empty.
>
> Won't remove commands refuse to clean up a directory if it's not
> empty?

The ANSI C remove() function removes non-empty directories under
Linux. :-)

On the other hand, the unlink() system call does not remove non-empty
directories.

Since Automake is multi-platform, it is wise to verify that all
supported platforms can support safe directory removal semantics.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

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