my @files = File::Find::Rule->new() ->file() ->name('*.txt') ->in($path);