Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Fixes #489: File.Copy fails with DirectoryNotFoundException on long path
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomodo committed Aug 18, 2018
1 parent fe921fe commit d76d1f9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace AlphaFS.UnitTest
{
public partial class UtilsTest
public partial class AlphaFS_UtilsTest
{
// Pattern: <class>_<function>_<scenario>_<expected result>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace AlphaFS.UnitTest
{
/// <summary>This is a test class for all Utils class Unit Tests.</summary>
[TestClass]
public partial class UtilsTest
public partial class AlphaFS_UtilsTest
{
}
}
2 changes: 1 addition & 1 deletion AlphaFS.UnitTest/AlphaFS.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
</Compile>
<Compile Include="AlphaFS Device Class\AlphaFS Volume Class\AlphaFS_Volume.DefineDosDevice_RegularDriveMapping.cs" />
<Compile Include="AlphaFS Device Class\AlphaFS_Device.EnumerateDevices.cs" />
<Compile Include="AlphaFS Utils Class\UtilsTest.cs" />
<Compile Include="AlphaFS Utils Class\AlphaFS_UtilsTest.cs" />
<Compile Include="Directory Class\AlphaFS_Directory.Copy\AlphaFS_Directory.Copy_3ExistingDirectories_FromVolumeShadowCopy.cs" />
<Compile Include="Directory Class\Directory.CreateDirectory\Directory.CreateDirectory_EmptyAsPath_ThrowsArgumentException.cs" />
<Compile Include="Directory Class\Directory.CreateDirectory\Directory.CreateDirectory_NullAsPath_ThrowsArgumentNullException.cs" />
Expand Down
2 changes: 1 addition & 1 deletion AlphaFS/Filesystem/File Class/File.Copy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ internal static void ValidateAndUpdatePathsAndOptions(KernelTransaction transact
deleteOnStartup = delayUntilReboot && null == destinationPath;


if (pathFormat == PathFormat.RelativePath)
if (pathFormat != PathFormat.LongFullPath)
{
if (Utils.IsNullOrWhiteSpace(sourcePath))
throw new ArgumentNullException("sourcePath");
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Changelog
=========

Version 2.2.6 (2018-XX-XX)
Version 2.2.6 (2018-08-18)
-------------

### Bugs Fixed

- Issue #488: `Path.CheckInvalidPathChars` in `Path.Helpers.cs` should be case insensitive (Thx GuyTe)
- Issue #489: `File.Copy` fails with `DirectoryNotFoundException` on long path (Thx CyberSinh)

### Improvements

Expand Down

0 comments on commit d76d1f9

Please sign in to comment.