I think part of the problem is an "overloading" of the term "upload directory"...
I have a problem with the upload directory.This iis the directory specified in the web.xml. For consistency let's call it the upload-dir.
> immediately after your pipeline completes >Cocoon will delete the file from the upload-dir > if it is still there.
My action will copy the file from the upload-dir to the specified destination directory. Let's call it the destination-dir.
Cocoon definitely deletes the file from the upload-dir once your pipeline finishes processing (this has nothing to do with the action).
But you didn't answer my question...Are you configuring your upload-dir to the same path as the destination-dir?
This shouldn't be necessary. I have been running this action for months copying hundreds of files into the same directory without ever deleting the directory. Are you getting some error message pointing to the directory creation as the problem? If so what is it?
Well, this doesn't happen into my application. When the server receives a file, it processes the file, and generates a result. After it, I need to delete the file, in order to prepare the sever for other receivements. Furthermore, I want to delete "incoming" directory, because the Upload Action doesn't work if "incoming" directory already exists.
That is ... "incoming" directory only accepts one file. If the server wants to adquire another file, there is a problem, because upload action tries to create "incoming" directory again.
Didn't you say in a previous email that you are reusing the same file name over and over?
Try this same stuff with different filenames and verify that it works correctly. Then try it reusing the same file names.
If you still have a problem please post the logfile output for the success case and the error case with logging set to DEBUG.
It is very painful trying to debug your problem if you don't supply the log information.
Best Regards, Steve
_________________________________________________________________
Has one of the new viruses infected your computer? Find out with a FREE online computer virus scan from McAfee. Take the FreeScan now! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
