Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: copy files on sftp to local dir and delete copied file

by MidLifeXis (Monsignor)
on Sep 24, 2015 at 13:22 UTC ( [id://1142907]=note: print w/replies, xml ) Need Help??


in reply to Re^2: copy files on sftp to local dir and delete copied file
in thread copy files on sftp to local dir and delete copied file

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

  • Comment on Re^3: copy files on sftp to local dir and delete copied file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1142907]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-20 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found