Advertisement

Removing a deep recursive folder structure

Started by August 28, 2016 07:39 PM
13 comments, last by JohnnyCode 8 years, 1 month ago

A bit late, but in such a case i would boot up a live linux from disc, mount the NTFS Partition and remove the folder where the nestination begins. It may work it may not - depends on the distro/used ntfs module.

Just curious but what API did you use to recusively CREATE this? Whatever interal API this uses should have the same size limitation on delete as it did on create?

Advertisement

Murphy's laws says that the create function accepts paths one character longer than the delete function.

Definition of a man-year: 730 people trying to finish the project before lunch

The one in the lib maybe, the underlying OS function it calls, doubtful.

A native windows C# application with System.IO namespace and Directory class will not do?

https://msdn.microsoft.com/en-us/library/system.io.directory(v=vs.110).aspx

You might dive into the structure and delete sub-tree from some viable point or such.

Be sparse and memory effective programmer- to not gobble up and freeze when creating the applicaiton.

I do not believe .NET framework would fall out on this, that would be a nice hack, and it would be nice if you spoke how you'd created this structure of directories.

Also this topic should be moved I believe.

This topic is closed to new replies.

Advertisement