willdooUK has asked for the wisdom of the Perl Monks concerning the following question:

Hi Guys

I'm developing for the web, and I'm finding myself uploading the same files repeatedly again and again as I build the code. My site directory structure keeps the include files in a separate folder, and I keep having to switch between the same folders when I'm uploading changes.

Does anyone know of an FTP program (Win XP) that has something like this:


Thanks,

willdooUK
--------------
"Home is a castle you built in my mind; I'm home anywhere, anytime."
Donny Hathaway
  • Comment on (OT) FTP utility that has a pool or list of current files?

Replies are listed 'Best First'.
Re: (OT) FTP utility that has a pool or list of current files?
by Corion (Patriarch) on Dec 06, 2006 at 12:48 UTC

    Have you looked at Net::FTP? It seems to me that it is very easy to implement what you want in a few additional lines. Maybe something like the untested following code:

    #!/usr/bin/perl -w use strict; use Net::FTP; $|++; my ($host,$user,$password) = ('ftp.example.com','willdooUK','supers3kr +3t'); my $ftp = Net::FTP->new($host, Passive => 1, Debug => 1) or die "Couldn't connect to '$host': $!"; $ftp->login($user, $password) or die "Couldn't login to '$host' as '$user'."; $ftp->binary; # just to be safe for my $line (<DATA>) { chomp; next unless /\S/; my ($local, $remote) = split /;/, $file; if (! $remote) { warn "Invalid remote name for '$local', ignored"; } elsif (! -f $local) { warn "Invalid local filename '$local', ignored"; } else { print "Storing '$local' as '$remote'"; $ftp->put($local,$remote); print ", done."; }; }; __DATA__ c:/web/my_local_file.txt;some/remote/dir/target.html d:/another/web/another_file.html;some/remote/dir/target.css
Re: (OT) FTP utility that has a pool or list of current files?
by jkva (Chaplain) on Dec 06, 2006 at 14:12 UTC
    Maybe WinSCP has functionality to your liking?
Re: (OT) FTP utility that has a pool or list of current files?
by zentara (Cardinal) on Dec 06, 2006 at 14:07 UTC