Fix for CreateFolder with SSH

git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1074 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
kenneth@hexad.dk
2011-12-15 09:39:15 +00:00
parent c05648d32b
commit ba58651e5a
@@ -98,8 +98,14 @@ namespace Duplicati.Library.Backend
public void CreateFolder()
{
using (SftpClient con = CreateConnection(false))
con.CreateDirectory(m_path);
using (SftpClient con = CreateConnection(false))
{
//Bugfix, some SSH servers do not like a trailing slash
string p = m_path;
if (p.EndsWith("/"))
p.Substring(0, p.Length - 1);
con.CreateDirectory(p);
}
}
public string DisplayName