http://www.perlmonks.org?node_id=1066932


in reply to Re^2: Net::FTP::Recursive code not downloading files
in thread Net::FTP::Recursive code not downloading files

As wazat points out the problem is with MatchDirs, though not with path names, as you can see from the output that it is entering the directories you have in MatchDirs. Once it gets in to one of those directories though, it won't go any further because subsequent directories are not in MatchDirs - it checks every directory for a match before recursing, not just the top level.

The solution is to get rid of the MatchDirs and call your code for each directory, setting the path in $params{dir}.
e.g. dir => "Browse_For_Drivers/Servers, Storage & Networking/PowerEdge/PowerEdge R810"

  • Comment on Re^3: Net::FTP::Recursive code not downloading files