Skip to content

C# .NET Framework library providing long path (>260 char) compatible implementations of common System.IO file manipulation methods.

Notifications You must be signed in to change notification settings

travisterrell/LongPathTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LongPathTools

C# library providing long path (>260 chars) compatible implementations of common .NET Framework System.IO file manipulation methods.

Although both Windows and .NET Framework technically support long paths (>260 characters), .NET Framework does not have any file methods which actually work with them. This is a collection of replacement methods that PInvoke the WIN32 API to provide support for common operations (delete, copy, exists, etc.)

Regarding Windows Support

While Windows does support long paths, they must first be enabled via Group Policy or the Registry Editor. Even after doing so, in order to use them, applications have to be coded to support them. For example, in Windows Explorer you are able to view the paths, but may encounter problems when attempting to delete files. There are other file management tools which can be used if files must be manually manipulated. The good news is that, using this library, your application will be able to handle them just fine.

Further Information

Technique used:
https://blogs.msdn.microsoft.com/bclteam/2007/02/13/long-paths-in-net-part-1-of-3-kim-hamilton/

PInvoke signature specifications:
http://pinvoke.net/

About

C# .NET Framework library providing long path (>260 char) compatible implementations of common System.IO file manipulation methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages