Subject: Re: Test if Directory is Empty
From: Joel VanderWerf <vjoel path.berkeley.edu>
Date: Tue, 17 Oct 2006 02:18:21 +0900
References: 219976219977220018220042220049
In-reply-to: 220049
WATANABE Hirofumi wrote:
> Dir.entries(dirname).join == "..."
Dir.entries(dirname).size == 2
But this still has the disadvantage that Ara mentioned for huge dirs...
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407