Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to fulfil the function of ftpls on windows

by atopolc (Pilgrim)
on May 30, 2002 at 14:00 UTC ( [id://170384]=note: print w/replies, xml ) Need Help??


in reply to How to fulfil the function of ftpls on windows

Being that you are on NT. You might want to look into Win32::Internet.
This module contains a nice ftp function. For your project you will want to look specifically at the list method. It would allow you to do something like this.
@files = $FTP->List(); @textfiles = $FTP->List("*.txt"); foreach $file (@textfiles) { print "Name: ", $file, "\n"; }

The list method also takes an optional list mode parameter in this case 2, which would give information like size, attributes,creation time and so forth.
@files = $FTP->List("*.*", 2);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://170384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-18 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found