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

AlphaFS v2.2

Compare
Choose a tag to compare
@Yomodo Yomodo released this 25 Mar 10:45

Serving along the Path for 10 years.

This release is also available on NuGet

Bugs Fixed

  • Issue #268: There are multiple warnings when building the documentation.
  • Issue #286: Property FileSystemEntryInfo.AlternateFileName is always an empty string.
  • Issue #292: CopyOptions.CopySymbolicLink not working in 2.1.2 (Thx v2kiran)
  • Issue #325: DeleteEmptySubdirectories (with recursive=true) throws System.IO.DirectoryNotFoundException (Thx kryvoplias)
  • Issue #328: Several instances of ArgumentException.ParamName not set/used correctly (Thx elgonzo)
  • Issue #330: Correct the parameter order for Privilege class constructors using the ArgumentNullException.
  • Issue #339: Directory/File.Encrypt/Decrypt should restore read-only attribute.
  • Issue #340: DirectoryReadOnlyException inherits from System.IO.IOException, wrong?
  • Issue #344: Directory.Copy throws UnauthorizedAccessException "The target file is a directory, not a file", while it is a file.
  • Issue #349: File.GetFileSystemEntryInfoCore should throw Directory/FileNotFoundException, depending on isFolder argument.
  • Issue #369: Directory.EnumerateFileSystemEntryInfos does not return subdirectories with spaces as name. (Thx Lupinho)
  • Issue #371: Fix .gitignore to accommodate new directory structure in AlphaFS.UnitTest project. (Thx damiarnold)
  • Issue #372: SetFsoDateTimeCore should always use BackupSemantics. (Thx damiarnold)
  • Issue #374: Initializing DriveInfo instance with only a letter throws System.ArgumentException.
  • Issue #375: What is the expected result of Path.LocalToUnc() ? (Thx damiarnold)
  • Issue #376: Path.LocalToUnc(path, true) does not return UNC path in long path form. (Thx damiarnold)
  • Issue #379: Path.LocalToUnc() isn't handling trailing directory separators for mapped drives. (Thx damiarnold)
  • Issue #381: Change property ByHandleFileInfo.VolumeSerialNumber from int to long.
  • Issue #386: Network.Host.EnumerateDrives() returns invalid data.
  • Issue #400: Directory.CopyDeleteCore creates destination folder when source folder does not exist.
  • Issue #412: Method Volume.GetVolumeDeviceName returns wrong result.
  • Issue #417: Using a file opened in append mode will fail after a gc occurs (Thx elgonzo)
  • Issue #417: File.OpenRead method overloads do not use FileShare.Read (Thx elgonzo)
  • Issue #427: System.IO.FileSystemInfo.Refresh() is public; but AlphaFS FileSystemInfo.Refresh() is protected

New Features

  • Issue #422: Add Copy-FileWithProgress.ps1 demonstrating file copy with progress report.
  • Issue #423: Add Copy-DirectoryWithProgress.ps1 demonstrating directory copy with progress report.
    Improved Enumerate-FileSystemEntryInfos.ps1 demonstrating DirectoryEnumerationFilters.

  • Issue #212: Provide a way to retrieve errors when you choose to ContinueOnException
  • Issue #314: Added Feature: Directory.GetFileSystemEntryInfo (Thx besoft)
  • Issue #322: Search files/folders using multiple filters. (Thx besoft)
  • Issue #336: Implement methods for Directory class: CreateJunction, DeleteJunction and ExistsJunction.
  • Issue #338: Add convenience method Directory.IsEmpty
  • Issue #342: Add instance method: FileInfo.IsLocked()
  • Issue #343: Add method File.GetProcessForFileLock
  • Issue #347: Implement method Directory.CreateSymbolicLink
  • Issue #348: Implement method Directory.GetLinkTargetInfo
  • Issue #351: Enable copying of Directory symbolic links.
  • Issue #353: Modify method Directory.GetFileSystemEntryInfo to return FileSystemEntryInfo structure for directories supporting also root directories, e.g., C:\ (Thx besoft)
  • Issue #354: Add methods File.GetFileId and Directory.GetFileId to return a unique file identifier. (Thx besoft)
  • Issue #370: Relative path from a full path (Thx QbProg)
  • Issue #373: Improve method Directory.CreateDirectory to allow creating a folder consisting only of spaces.
  • Issue #414: Add additional Network.Host methods.
  • Issue #415: Added ProcessContext static class to determine the context of the current process.

See CHANGELOG for more improvements and breaking changes.