-fixed: delete directory bug
-changed: warnings are no errors any more
This commit is contained in:
parent
895efb2682
commit
387a4f8b34
|
@ -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('/', '\\'));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<DocumentationFile>bin\Release\WebDAVSharp.Server.XML</DocumentationFile>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<DefineConstants>TRACE;USE_RELEASE_KEY</DefineConstants>
|
||||
<DocumentationFile>bin\Release\WebDAVSharp.Server.XML</DocumentationFile>
|
||||
<Optimize>true</Optimize>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
|
@ -62,10 +62,10 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Common.Logging">
|
||||
<HintPath>..\..\WebDavSharp\Example-master\packages\Common.Logging.2.2.0\lib\net40\Common.Logging.dll</HintPath>
|
||||
<HintPath>packages\Common.Logging.2.2.0\lib\net40\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging.Core">
|
||||
<HintPath>..\..\WebDavSharp\Example-master\packages\Common.Logging.Core.2.2.0\lib\net40\Common.Logging.Core.dll</HintPath>
|
||||
<HintPath>packages\Common.Logging.Core.2.2.0\lib\net40\Common.Logging.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
|
Loading…
Reference in New Issue