-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
62 additions
and
69 deletions.
There are no files selected for viewing
Submodule MailRuNetCloudClient
updated
4 files
+1 −13 | MailRuCloudApi/File.cs | |
+42 −0 | MailRuCloudApi/MailRuCloudApi.cs | |
+1 −0 | MailRuCloudApi/MailRuCloudApi.csproj | |
+45 −0 | MailRuCloudApi/SpecialCommand.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="FooConsole.Properties" GeneratedClassName="Settings"> | ||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | ||
<Profiles /> | ||
<Settings> | ||
<Setting Name="z" Type="System.String" Scope="Application"> | ||
<Value Profile="(Default)">z</Value> | ||
</Setting> | ||
</Settings> | ||
<Settings /> | ||
</SettingsFile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace YaR.WebDavMailRu.CloudStore | ||
{ | ||
public static class WebDAVPath | ||
{ | ||
public static string Combine(string a, string b) | ||
{ | ||
a = Clean(a); | ||
b = Clean(b); | ||
a = a.Trim('/'); | ||
b = b.TrimStart('/'); | ||
string res = "/" + a + (string.IsNullOrEmpty(b) ? "" : "/" + b); | ||
return res; | ||
|
||
} | ||
|
||
public static string Clean(string path) | ||
{ | ||
return path.Replace("\\", "/"); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters