Skip Menu |

This queue is for tickets about the File-Finder CPAN distribution.

Report information
The Basics
Id: 7476
Status: open
Priority: 0/
Queue: File-Finder

People
Owner: MERLYN [...] cpan.org
Requestors: rodneybeede [...] yahoo.it
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: (no value)



Subject: Bug with type option
Version 0.03 of File::Finder This is perl, v5.8.3 built for MSWin32-x86-multi-thread Win XP Pro The listing I get contains directories even though I specify to only see files. Here is some sample code. my $all_files = File::Finder->type('f'); my @results = $all_files->in($LogsDirectory);
From: rodneybeede [...] yahoo.it
Followup note: This may be related to using the following type of directory name on a Windows box: c:/some/dir instead of c:\\some\\dir.
[guest - Wed Aug 25 12:59:38 2004]: Show quoted text
> Followup note: > > This may be related to using the following type of directory name on a > Windows box: c:/some/dir instead of c:\\some\\dir.
I don't have access to a Windows machine, so I can't test this directly. However, the code generated by File::Finder should be equivalent to the following: use File::Find; find(sub { print $File::Find::name if -f; }, @starting_points); See if that also shows the same names. Also, I found a few minor problems with stat()ing properly in 0.03. See if 0.51 fixes your problems, as I'm planning a new release soon to flesh out some more stuff.