![]() |
|
XP is just a number | |
PerlMonks |
Net::FTP file type and attributesby fedelman (Novice) |
on Jan 22, 2004 at 19:07 UTC ( #323291=perlquestion: print w/replies, xml ) | Need Help?? |
fedelman has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys, I'm developing a script for different synchronization tasks (remote2local, local2remote, remote2remote, local2local). I've got the following HASH: $src{$path}->{type} $src{$path}->{size} $src{$path}->{mtime} $path = full path for an archive or directory type = 'f' or 'd'. File or directory. size = The size for the file file. mtime = Modification time for the file. When a I read the %src I need to know if the $path exist into the other side. In other words, I need to know if the $path into the remote side. I've got a problem, when the source is local and the destination is an FTP. Why? Simple, Both, Net:FTP and FTP protocol, doesn't provide the way to know if a $path is a 'directory' or 'file'. I don't know what is the best way to fix. Can anybody give me your opinion about what I would to do. Thanks very much.
Back to
Seekers of Perl Wisdom
|
|