ingydotnet/io-all-pm — Issue #9: dir() takes files?
Author: ranguard
Created: 2011-11-01 21:34:13+00:00
State: open

Expected:

my $dir = io->dir('/foo/bar/');
my $file = $dir->filename(); # ''

Not expected:

my $dir = io->dir('/foo/bar');
my $file = $dir->filename(); # 'bar'

As I've explicitly said /foo/bar is a directory, 'bar' isn't a filename