Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to fulfil the function of ftpls on windows

by atopolc (Pilgrim)
on May 30, 2002 at 14:00 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-12-09 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?