David Cumps
Posts: 319
Nickname: cumpsd
Registered: Feb, 2004
|
David Cumps is a Belgian Student learning .NET
|
|
|
|
Explorer Bug, Long Path, damaged directories.
|
Posted: Apr 10, 2004 8:05 AM
|
|
Here is something I believe should be prevented:
In Explorer, first create a very big directory tree, consisting out of small directory names.
Now, from the bottom, rename these directories to about 100 characters.
When you reached the top, try browsing the tree, you'll see it blocks you after the third directory.
You can't select it, it will jump back, you can't rename that one, you can't delete the entire tree at once.
You can however to get rid of it, start renaming from the top, to all short names again, until you can delete them.
I realize this has something to do with character limits on paths, but this shouldn't be possible, should it? You can't even delete them properly.
Is there a way to prevent this from happening? Or at least be able to clean it up without too much hastle?
I created a small proof of concept, using three .bat files. Extract the zip and run Destroy.bat, it will first call Mtree.bat to make the small directory tree, after which it calls Rtree.bat to rename the directories.
Feel free to look at the .bat files with a text editor, to check what it does. And as usual: I'm not responsible for any damage what so ever that might come from these posts. (Just playing safe, before someone acuses me of doing a deltree ;))
Read: Explorer Bug, Long Path, damaged directories.
|
|