Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XRMD,XMKD,XPWD #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

RunConfig.xml

# User-specific files
*.suo
*.user
Expand Down
3 changes: 3 additions & 0 deletions Library/Connections/ControlConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private async Task ProcessCommandAsync(string message)
await fileProvider.DeleteAsync(parameter);
await ReplyAsync(FtpReplyCode.FileActionOk, "Delete succeeded");
return;
case "XRMD":
case "RMD":
if (!authenticated)
{
Expand All @@ -244,6 +245,7 @@ private async Task ProcessCommandAsync(string message)
await fileProvider.DeleteDirectoryAsync(parameter);
await ReplyAsync(FtpReplyCode.FileActionOk, "Directory deleted");
return;
case "XMKD":
case "MKD":
if (!authenticated)
{
Expand All @@ -257,6 +259,7 @@ await ReplyAsync(
"\"{0}\"",
fileProvider.GetWorkingDirectory().Replace("\"", "\"\"")));
return;
case "XPWD":
case "PWD":
if (!authenticated)
{
Expand Down