Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Feature request: right click on project name to create new Directory
thomas:
It is not that nobody is interested... it is just not so trivial to implement.
Right now, projects hold files. Since every file obviously has to be inside some folder, this defines the folders for the project at the same time. There can be no misunderstanding.
If you keep additional directory information in the project file, then you can have directories independent of files. But the problem is that you are duplicating volatile data here, and that will run you into problems sooner or later unless you take extra precautions.
For example, what happens if a user deletes an empty folder from the hard disk? This seems like a pretty normal thing to do, and it is certainly allowed. I did that once with Dev-CPP, and the result was that it crashed as soon as I clicked into the project window, and the project file was corrupted beyond repair. This is the kind of behaviour which I am afraid of.
Of course, such crashes can be avoided by adding a lot of extra checks, but like I said: it is certainly possible, but not so easy.
takeshimiya:
My rationale is that, MSVC supports that, and a user coming from an IDE that supports that (let's call it virtual directiories) can be a bit shocking. HOWEVER, I think it's far easier and better to do the organization right on the real filesystem, and that should be encouraged.
So, the question would be: C::B should do what it thinks it's the best behaviour, or, let the user do whatever he wants, at the cost of (maybe) confusing them? (appart from what thomas says that it's true: it's not trivial to implement).
Navigation
[0] Message Index
[*] Previous page
Go to full version