diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2018-05-26 20:36:50 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2018-05-26 20:36:50 +0300 |
commit | bbe65f9dfb9b78cff1e6367894de7730bc139199 (patch) | |
tree | 9ebe292635e31478af3e53e15e9c6ec97a36519b | |
parent | a7575d6bda695205297eb98120799267b10a4d93 (diff) |
Remove ineffective statements.
The removed code was introduced in revision ba58651e5a ("Fix for
CreateFolder with SSH"), presumably to fix an issue where some SSH
backends did not like the trailing slash when creating new folders.
However, since we are not using the output argument of the call to
Substring, these statements have no effect.
-rw-r--r-- | Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs index 7c5407e94..36e5c39d5 100644 --- a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs +++ b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs @@ -112,11 +112,7 @@ namespace Duplicati.Library.Backend public void CreateFolder()
{
CreateConnection();
- //Bugfix, some SSH servers do not like a trailing slash
- string p = m_path;
- if (p.EndsWith("/", StringComparison.Ordinal))
- p.Substring(0, p.Length - 1);
- m_con.CreateDirectory(p);
+ m_con.CreateDirectory(m_path);
}
public string DisplayName
|