Dec 12, 2012 at 5:13 PM
Edited Dec 12, 2012 at 5:16 PM
Sorry for my poor english.
When you want to upload a file, the method 'OpenWrite' calls 'OpenDataStream' which makes a 'CloneConnection'
But 'CloneConnection' doesn't clone the WorkingDirectory.
FtpClient cl = new FtpClient();
Stream ostream = cl.OpenWrite("test3.txt"))
I had in 'CloneConnection' Method:
conn.m_workingDirectory = m_workingDirectory;
And in 'OpenDataStream' method, i had
if (!string.IsNullOrEmpty(client.m_workingDirectory) && client.m_workingDirectory.Length > 1)