|XP is just a number|
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:
I'm developing a script for different synchronization tasks (remote2local, local2remote, remote2remote, local2local).
I've got the following HASH:
$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