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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user