Hmmm. The Explorer in Windows 7 does this, somewhat better than proposed here (in my opinion) since it eliminates slashes.
There are additional operational semantics that are important, such how you bail out of a bad edit, what happens if you type in something non-existent, and so forth.
I hadn't realized how involved this UI is. People take a lot for granted.