|
|
|
|
@ -92,15 +92,15 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new file at the specified directory path.
|
|
|
|
|
* Creates a new untitled file or directory in the specified directory path.
|
|
|
|
|
*
|
|
|
|
|
* @method new
|
|
|
|
|
* @param {String} path The path to create the new notebook at
|
|
|
|
|
* @param {String} path: the directory in which to create the new file/directory
|
|
|
|
|
* @param {Object} options:
|
|
|
|
|
* ext: file extension to use
|
|
|
|
|
* type: model type to create ('notebook', 'file', or 'directory')
|
|
|
|
|
*/
|
|
|
|
|
Contents.prototype.new = function(path, options) {
|
|
|
|
|
Contents.prototype.new_untitled = function(path, options) {
|
|
|
|
|
var data = JSON.stringify({
|
|
|
|
|
ext: options.ext,
|
|
|
|
|
type: options.type
|
|
|
|
|
|