Re: Checking if directory is empty in postrm
Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:
> On Sun, Nov 15, 1998 at 11:23:09AM -0700, phumpherys@utah-inter.net wrote:
> >
> > ls -1
>
> May be I am missing something, but this does only affect the formatting of
> the output of ls.
-1 won't report . or .., but will return *nothing* of the
directory is empty.
Now, with perl you can use opendir(). I don't know what you'd
use with shell if you needed an error code.
--
Phil Humpherys <phumpherys@utah-inter.net> DriverSoft
Unix Systems Administrator Mobile: +1.801.725.3257
WWW/PGPkeys: http://www.spire.com/~humphery
Reply to: