This project is read-only.

“LongPathSupport”: Operate with files and directories with “long paths” in .NET

In my project RoboPowerCopy ( I’ve implemented a basic set of classes and methods for use with files and directories with long paths. NTFS supports paths with up to 32000 characters. But .NET only supports 256 characters. So System.IO.FileInfo and System.IO.DirectoryInfo will not work with such a file:


This path has 655 characters. No way in .NET without using the Win32 API.

I’ve wrapped the API calls into a set of basic .NET classes to provide a basic support for files and directors with long paths…

Here it is!

I recommand you to use only the “Source” version, not binary. Please use it carefully!


Please feel free to contribute the project or post you experiences on my blog or on Codeplex!

For the project I’ve read/used some other source in the Internet. Especially this three I’d like to refer to:


This is the corresponding article on my blog:

Last edited Aug 22, 2011 at 11:05 AM by ikarstein, version 8