Re: Check if directory is empty on Win32
- From: rvtol+news@xxxxxxxxxxxx (Dr.Ruud)
- Date: Fri, 27 Jun 2008 00:30:40 +0200
Leonid L schreef:
Many of the proposed solutions I've found on Google do not work for
me, perhaps because they assume Unix/Linux host. I need a sub that
will reliably tell me whether a given directory is empty (I am running
Perl on Win XP, NTFS file system). Please give your implementation a
quick test on a similar platform before posting.
perldoc -f glob
For example:
perl -wle "my @e=<C:/temp/{.*,*}>; print( -d $_ ? qq{$_/} : $_) for
@e"
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- Check if directory is empty on Win32
- From: Leonid L
- Check if directory is empty on Win32
- Prev by Date: Re: How can I translate it back to @ sign.
- Next by Date: Re: Parse IRC log
- Previous by thread: Check if directory is empty on Win32
- Next by thread: Re: Check if directory is empty on Win32
- Index(es):
Relevant Pages
|