in reply to Net::Ftp::Recursive ParseSub Help

Well, it's because you are on Windows, and 'ls -al' is not a valid Windows command. You will have to use the Windows/DOS equivalent of directory listing command. You could give the following a try, by overriding the default 'ls -al' command under unix with 'cmd.exe /C dir /B' command under Windows.

$ftprput ( ParseSub => \&get_list, DirCommand => 'cmd.exe /C dir /b' ); # or this - $ftprput ( ParseSub => \&get_list, DirCommand => 'dir /b' ); # use current cmd shell

Replies are listed 'Best First'.
Re: Re: Net::Ftp::Recursive ParseSub Help
by bear0053 (Hermit) on Nov 28, 2003 at 15:16 UTC
    Thanks I got the ls -al error to go away but the new error i am getting is:
    Can't call method "isPlainFile" on an undefined value at C:/Perl/site/ +lib/Net/FT P/Recursive.pm line 248.
    I need to write a function get_list that sets these values somehow but i am not sure how to start. This had to have been done before since it is neccessary if you use this on a windows platform.

    THanks in advance for your help.