How do I tell when a directory is empty in a script?

Rey Paulo rvp at softserver.canberra.edu.au
Thu Apr 25 12:20:29 AEST 1991


In article <1991Apr18.054735.6733 at metapro.DIALix.oz.au> bernie at metapro.DIALix.oz.au (Bernd Felsche) writes:

[ stuff deleted ]

Is there any system call or library routine in UNIX which tests whether
a directory is empty?

Thanx.


-- 
Rey V. Paulo                  | Internet:  rvp at csc.canberra.edu.au 
University of Canberra        | I am not bound to please thee with my answer. 
AUSTRALIA                     |         -Shylock, in "The Merchant of Venice" 
------------------------------+----------------------------------------------



More information about the Comp.unix.questions mailing list