Busirane
unread,Jul 6, 2015, 10:06:49 AM7/6/15You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have an application that traverses a directory tree an puts it into a treectrl with some other data. It runs into problems when the directory is very deeply nested, i.e., deeper than the Windows MAX_PATH. It uses [glob] to find the children at each level, and [file is*] to tell the files from the directories.
I know about the //?/ prefix trick, and it does seem to work for the [file] commands. (In fact, I created a structure about 4000 levels deep, that took me quite a while to figure out how to delete!) But that prefix doesn't seem to work with [glob], so I can't figure out how to fully traverse deeply nested directories.
I tried [fileutil::find], but it didn't work. Windows native "dir" doesn't seem to be able to do it, either. Windows Explorer will let you view such a deep directory structure, but you can't manipulate it.
Does anyone know how to fully traverse a deeply nested directory under Windows?