Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2018-05-26 20:36:50 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2018-05-26 20:36:50 +0300
commitbbe65f9dfb9b78cff1e6367894de7730bc139199 (patch)
tree9ebe292635e31478af3e53e15e9c6ec97a36519b /Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
parenta7575d6bda695205297eb98120799267b10a4d93 (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.
Diffstat (limited to 'Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs')
-rw-r--r--Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs6
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