go ahead... be a heretic | |
PerlMonks |
Re^3: copy files on sftp to local dir and delete copied fileby MidLifeXis (Monsignor) |
on Sep 24, 2015 at 13:22 UTC ( [id://1142907]=note: print w/replies, xml ) | Need Help?? |
Are you sure you want to eliminate anything that begins with '.' (just asking, you very well might)? If not, it would likely be better to explicitly call out '.' and '..'. You may also want to consider what you mean by success. For example, are you certain the remote side is not being written to? There is a race condition between the get and the remove calls. OTOH, if the source location is unchanging (other than this script), you may be just fine. --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|