From 387a4f8b3422a171d47d3dd40dbfb555414bc55a Mon Sep 17 00:00:00 2001 From: Charly Date: Mon, 3 Oct 2016 11:46:05 +0200 Subject: [PATCH] -fixed: delete directory bug -changed: warnings are no errors any more --- .../MethodHandlers/WebDavMethodHandlerBase.cs | 2 +- .../WebDAVSharp.Server/WebDAVSharp.Server.csproj | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavMethodHandlerBase.cs b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavMethodHandlerBase.cs index 53a5404..fcfbc70 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavMethodHandlerBase.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavMethodHandlerBase.cs @@ -167,7 +167,7 @@ namespace WebDAVSharp.Server.MethodHandlers { public static string ExtractFileName(string fileName) { //Uri.UnescapeDataString(childUri.Segments.Last().TrimEnd('/', '\\'))); - return Path.GetFileName(fileName); + return Path.GetFileName(fileName.Trim('/', '\\')); } /// diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/WebDAVSharp.Server.csproj b/WebDavSharp_MVC/WebDAVSharp.Server/WebDAVSharp.Server.csproj index 5f2272a..9a4a37b 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/WebDAVSharp.Server.csproj +++ b/WebDavSharp_MVC/WebDAVSharp.Server/WebDAVSharp.Server.csproj @@ -36,7 +36,7 @@ TRACE prompt 4 - true + false bin\Release\WebDAVSharp.Server.XML false @@ -45,7 +45,7 @@ TRACE;USE_RELEASE_KEY bin\Release\WebDAVSharp.Server.XML true - true + false pdbonly AnyCPU prompt @@ -62,10 +62,10 @@ - ..\..\WebDavSharp\Example-master\packages\Common.Logging.2.2.0\lib\net40\Common.Logging.dll + packages\Common.Logging.2.2.0\lib\net40\Common.Logging.dll - ..\..\WebDavSharp\Example-master\packages\Common.Logging.Core.2.2.0\lib\net40\Common.Logging.Core.dll + packages\Common.Logging.Core.2.2.0\lib\net40\Common.Logging.Core.dll