On 24 May 2012 01:44, Charles W. Stanton <[email protected]> wrote: > I just downloaded the Mina source code and am looking through it. What I'd > like is a way to have the Mina sftp server accept and save a file to one > name, like originalName_tmp, then change the name to originalName after the > transfer is complete. That way I can have an external process watching the > directory know for sure when the transfer is done. Right now I'm grabbing > partial files, even if I try to get a read lock. (Stupid Java...) > > Any quick thoughts? Is there an easy way to plug in to the Mina > architecture? Or override a class? Or...
Use the client to ask the server to rename the file once it has been uploaded? Note that the code will need to allow for the case where the rename fails.
