Re: FileNotFoundException on ftp connection
Can you look at the log for the server and see where it is looking for the file?
For testing make lots of text.txt files all with different contents and spread them over the possible folders the server would look in. When the file is read, its contents will tell you where it was read from.
Re: FileNotFoundException on ftp connection
Thanks Norm for the suggestion.
In the end I found out that the path I thought I was writing to was a relativa path from my home dir, instead of absolute.
I discovered this by changing the path from '//home/rezah/test.txt' to just /test.txt it would just create a file on my home directory.