On Mon, 15 Oct 2012 00:20:19 +0200, Matej Nanut wrote:

Hello again!

For me, the uploader example doesn't work. After trying to upload a plain text file from my home directory, I get this:


This probably has something to do with rename() not working between different mount points on Linux. I'm not sure how it can be fixed, except manually copying the file and deleting the old one?

Yes, I would say copy+delete is the way to go here. I wouldn't want to change the semantics of rename() because it can be quite useful to know that the operation usually does not take long. But maybe the example could use a fallback path, as this situation probably is not too uncommon on Linux...

PS: just noticed that there is no copyFile() function. I'll add that later.