adobe/brackets — pull request #1719 by gruehle (2012-09-26 14:55:06+00:00)
Title: Add "New Folder" and "Rename" features

This pull request adds two new features: New Folder, and Rename file/folder.

**IMPORTANT: This pull request requires adobe/brackets-shell#120**

USAGE

The _New Folder_ command is added to the File menu and the project context menu. When selected, a new folder is created at the same level as the current selection in the project tree. If nothing in the project tree is selected (for example, if a file in the working set is selected), the folder is created at the root of the project folder.

The _Rename_ command is added to the project context menu. It will rename the selected file or folder. Note that the _Rename_ command will only work on project tree items. You cannot rename a file in the working set.

API NOTES

`DocumentManager` dispatches a new `fileNameChange` event whenever the name of a file or folder has changed.

`DirectoryEntry.getDirectory()` is now implemented. This will return a reference to an existing directory or create a new directory if needed.

UNIT TESTS

Unit tests are added for rename(), but not directory creation. We need an API to remove a directory before we can add unit tests that create a directory.