Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Monitoring an FTP upload directory

by chargrill (Parson)
on Nov 07, 2006 at 19:20 UTC ( #582718=note: print w/replies, xml ) Need Help??


in reply to Monitoring an FTP upload directory

Depends on your FTP server, and possibly the client. I've had experience where a large file gets uploaded as .filename.ext, and once the transfer is finished, the file becomes (rather quickly) renamed as filename.txt.

I don't recall if this convention is inherent in FTP, or was just a happy coincidence that the server and client combination I was using happened to honor. I'd test a few large file transfers in your local FTP server/client combination of choice.

Update: Thanks for jogging my memory, wjw. ProFTPD was the server I was using, and has a nice directive for accomplishing the rename, documentation for which resides here.



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Replies are listed 'Best First'.
Re^2: Monitoring an FTP upload directory
by Anonymous Monk on Mar 06, 2017 at 11:31 UTC
    There is a good nodejs module (remote-file-watcher) for this exact use available on npmjs.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-01-19 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?