[WIP] remove separate 'path' and 'name' from ContentsManager

Opening now, so the plan is clear, but it will need to be rebased and finished after #6045 and #6783, which touch the same code. We should notify anyone who is already writing ContentsManagers that target 3.0.

Changes:

- ContentsManager APIs will only use a single 'path' argument, which is the full path
- `path` in the Contents model will become the full path, rather than the parent directory
- remove "untitled upload" via POST to a directory (only upload via PUT)
- remove copy via PUT(only POST)
I split new, adding new_untitled.

On Mon, Nov 10, 2014 at 1:34 PM, Thomas Kluyver <notifications@github.com>
wrote:

> In IPython/html/services/contents/manager.py:
>
> >                  e.message, json.dumps(e.instance, indent=1, default=lambda obj: '<UNKNOWN>'),
> >              )
> >          return model
> >
> > -    def create_file(self, model=None, path='', ext='.ipynb'):
> > +    def new(self, model=None, path='', ext='.ipynb'):
> >          """Create a new file or directory and return its model with no content."""
>
> That's somewhat surprising. I would do those things as two separate
> methods (maybe new() and new_untitled()).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ipython/ipython/pull/6809/files#r20114700>.
>