<commit_before>﻿## **WebDAV emulator for Mail.ru Cloud**<br>

<a href="https://github.com/yar229/WebDavMailRuCloud/releases/latest"><img src="https://mybadges.herokuapp.com/github/release/yar229/WebDavMailRuCloud.svg?label=download%20latest%20binaries%20%20%20%20&style=social"></a>
<img src="https://api.travis-ci.org/yar229/WebDavMailRuCloud.svg?branch=master" align="right">
 <a href="http://www.somsubhra.com/github-release-stats/?username=yar229&repository=WebDavMailRuCloud"><img src="https://mybadges.herokuapp.com/github/downloads/yar229/WebDavMailRuCloud/total.svg" align="right" target="_blank"></a>


* You don't need this program if you have [paid account](https://help.mail.ru/cloud_web/app/webdav)  
* UA users! Mail.Ru заблокирован в вашей стране, используйте, например, эти [инструкции](https://zaborona.help)


#### Requirements <img src="https://habrastorage.org/files/72e/83b/159/72e83b159c2446b9adcdaa03b9bb5c55.png" width=200 align="right"/>
* [Windows](#windows)  - .NET Framework 4.5 / [.NET Core 2.0](https://www.microsoft.com/net/core#windowscmd)
* [Linux](#linux) - Mono 4.6 / [.NET Core 2.0](https://www.microsoft.com/net/core#linuxredhat)
* [OS X](#mac-os-x) - Mono 4.6 / [.NET Core 2.0](https://www.microsoft.com/net/core#macos)

`WebDAVCloudMailRu-*-dotNet45.zip` / `WebDAVCloudMailRu-*-dotNetCore20.zip` respectively

#### Usage
``` 	
	-p, --port        (Default: 801) WebDAV server port
	-h, --host	  (Default: "http://127.0.0.1") WebDAV server host with protocol (http://* for http://0.0.0.0)
	--maxthreads      (Default: 5) Maximum concurrent connections to cloud.mail.ru
	--user-agent      "browser" user-agent
	--help            Display this help screen.
	--version         Display version information.
```

***Commands*** <br/>
Commands executed by making directory with special name
* Clone shared cloud.mail.ru file/folder to your account: `>>SHARED_FOLDER_LINK`
* Link shared folder without wasting your space: `>>link SHARED_FOLDER_LINK [linkname]` or manually edit file /item.links.wdmrc
* Fast delete:
  * `>>del` current folder
  * `>>del abc/cde` current folder/abc/cde
  * `>>del /abc/cde` root/abc/cde

***Settings*** in `wdmrc.exe.config`
* Logging <br/>
	`<config><log4net>` <br/>
	It's standart [Apache log4net](https://logging.apache.org/log4net/) configurations, take a look for [examples](https://logging.apache.org/log4net/release/config-examples.html)
* 2 Factor Authentification <br/>
	`<config><TwoFactorAuthHandlerName>` <br/>
	At this time you can use
	* `AuthCodeWindow` - asks for authcode in GUI window (only for .NET Framework releases)
	* `AuthCodeConsole` - asks for authcode in application console
	
	Be careful, this methods does not usable when application started as a service/daemon. <br>
	You can make your own 2FA handlers inherited from `ITwoFaHandler` and put it in separate dll which name starts with `MailRuCloudApi.TwoFA`
	
Connect with (almost any) file manager that supports WebDAV using Basic authentification with no encryption and your cloud.mail.ru email and password (it's safe when you opens server on 127.0.0.1)
<commit_msg>#97 readme update<commit_after>﻿## **WebDAV emulator for Mail.ru Cloud**<br>

<a href="https://github.com/yar229/WebDavMailRuCloud/releases/latest"><img src="https://mybadges.herokuapp.com/github/release/yar229/WebDavMailRuCloud.svg?label=download%20latest%20binaries%20%20%20%20&style=social"></a>
<img src="https://api.travis-ci.org/yar229/WebDavMailRuCloud.svg?branch=master" align="right">
 <a href="http://www.somsubhra.com/github-release-stats/?username=yar229&repository=WebDavMailRuCloud"><img src="https://mybadges.herokuapp.com/github/downloads/yar229/WebDavMailRuCloud/total.svg" align="right" target="_blank"></a>


* You don't need this program if you have [paid account](https://help.mail.ru/cloud_web/app/webdav)  
* UA users! Mail.Ru заблокирован в вашей стране, используйте, например, эти [инструкции](https://zaborona.help)


#### Requirements <img src="https://habrastorage.org/files/72e/83b/159/72e83b159c2446b9adcdaa03b9bb5c55.png" width=200 align="right"/>
* [Windows](#windows)  - .NET Framework 4.5 / [.NET Core 2.0](https://www.microsoft.com/net/core#windowscmd)
* [Linux](#linux) - Mono 4.6 / [.NET Core 2.0](https://www.microsoft.com/net/core#linuxredhat)
* [OS X](#mac-os-x) - Mono 4.6 / [.NET Core 2.0](https://www.microsoft.com/net/core#macos)

`WebDAVCloudMailRu-*-dotNet45.zip` / `WebDAVCloudMailRu-*-dotNetCore20.zip` respectively

#### Usage
``` 	
	-p, --port        (Default: 801) WebDAV server port
	-h, --host	  (Default: "http://127.0.0.1") WebDAV server host with protocol (http://* for http://0.0.0.0)
	--maxthreads      (Default: 5) Maximum concurrent connections to cloud.mail.ru
	--user-agent      "browser" user-agent
	--help            Display this help screen.
	--version         Display version information.
```

***Commands*** <br/>
Commands executed by making directory with special name
* `>>join SHARED_FOLDER_LINK` Clone shared cloud.mail.ru file/folder to your account
* `>>link SHARED_FOLDER_LINK [linkname]` Link shared folder without wasting your space (or manually edit file /item.links.wdmrc)
* `>>link check` Remove all dead links (may take time if there's a lot of links)
* `>>del` Fast delete (if your client makes recursive deletions of inner items)
  * `>>del` current folder
  * `>>del abc/cde` current folder/abc/cde
  * `>>del /abc/cde` root/abc/cde

***Settings*** in `wdmrc.exe.config`
* Logging <br/>
	`<config><log4net>` <br/>
	It's standart [Apache log4net](https://logging.apache.org/log4net/) configurations, take a look for [examples](https://logging.apache.org/log4net/release/config-examples.html)
* 2 Factor Authentification <br/>
	`<config><TwoFactorAuthHandlerName>` <br/>
	At this time you can use
	* `AuthCodeWindow` - asks for authcode in GUI window (only for .NET Framework releases)
	* `AuthCodeConsole` - asks for authcode in application console
	
	Be careful, this methods does not usable when application started as a service/daemon. <br>
	You can make your own 2FA handlers inherited from `ITwoFaHandler` and put it in separate dll which name starts with `MailRuCloudApi.TwoFA`
	
Connect with (almost any) file manager that supports WebDAV using Basic authentification with no encryption and your cloud.mail.ru email and password (it's safe when you opens server on 127.0.0.1)

{'fraction_non_alphanumeric': 0.14745098039215687, 'fraction_numerical': 0.030745098039215685, 'mean_word_length': 4.5929824561403505, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 65, 'https://': 24, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1133940', 'n_tokens_mistral': 2335, 'n_tokens_neox': 2158, 'n_words': 554}