BT

True Windows File System Access with AlphaFS 2.0

| by Jonathan Allen Follow 576 Followers on Mar 13, 2015. Estimated reading time: less than one minute |

A major limitation of the .NET framework is its inability to truly work with the Windows file system. Even seemingly basic operations such as working file paths longer than 260 characters long is beyond the capabilities of System.IO. This is where AlphaFS comes into play.

AlphaFS is an open source library that is wraps the Win32 calls necessary to fully expose the Windows file system to .NET applications. Much of this functionality is exposed by classes that mirror the System.IO API, but with additional functionality. As an example, consider the Alphaleonis.Win32.Filesystem.DirectoryInfo class.

As you scroll through the list of methods, you’ll notice that many of them have [AlphaFS] in their description. This tag indicates that the method doesn’t exist in the System.IO.DirectoryInfo class. Examples include Compress, various CopyTo methods, recursive Delete, Encrypt, etc.

Other features of AlphaFS include:

  • Creating Hardlinks
  • Accessing hidden volumes
  • Enumeration of volumes
  • Transactional file operations
  • Support for NTFS Alternate Data Streams
  • Accessing network resources (SMB/DFS)

AlphaFS is available on NuGet and is offered under the MIT license.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT