folderPane.js
function (newPaneOptions) {
    var kb = UI.store
    var newInstance = newPaneOptions.newInstance || kb.sym(newPaneOptions.newBase)
    var u = newInstance.uri
    if (u.endsWith('/')) {
      u = u.slice(0, -1) // chop off trailer
    }// { throw new Error('URI of new folder must end in "/" :' + u) }
    newPaneOptions.newInstance = kb.sym(u + '/')

    // @@@@ kludge until we can get the solid-client version working
    // Force the folder by saving a dummy file inside it
    return kb.fetcher.webOperation('PUT', newInstance.uri + '.dummy')
      .then(function () {
        console.log('New folder created: ' + newInstance.uri)

        return kb.fetcher.delete(newInstance.uri + '.dummy')
      })
      .then(function () {
        console.log('Dummy file deleted : ' + newInstance.uri + '.dummy')
/*
        return kb.fetcher.createContainer(parentURI, folderName) // Not BOTH ways
      })
      .then(function () {
*/
        console.log('New container created: ' + newInstance.uri)
        return newPaneOptions
      })
  }
function (newPaneOptions) {
    var kb = UI.store
    var newInstance = newPaneOptions.newInstance || kb.sym(newPaneOptions.newBase)
    var u = newInstance.uri
    if (u.endsWith('/')) {
      u = u.slice(0, -1) // chop off trailer
    }// { throw new Error('URI of new folder must end in "/" :' + u) }
    newPaneOptions.newInstance = kb.sym(u + '/')

    // @@@@ kludge until we can get the solid-client version working
    // Force the folder by saving a dummy file inside it
    return kb.fetcher.webOperation('PUT', newInstance.uri + '.dummy')
      .then(function () {
        console.log('New folder created: ' + newInstance.uri)

        return kb.fetcher.delete(newInstance.uri + '.dummy')
      })
      .then(function () {
        console.log('Dummy file deleted : ' + newInstance.uri + '.dummy')
/*
        return kb.fetcher.createContainer(parentURI, folderName) // Not BOTH ways
      })
      .then(function () {
*/
        console.log('New container created: ' + newInstance.uri)
        return newPaneOptions
      })
  }
function ( newPaneOptions ) { var kb = UI . store var newInstance = newPaneOptions . newInstance || kb . sym ( newPaneOptions . newBase ) var u = newInstance . uri if ( u . endsWith ( '/' ) ) { u = u . slice ( 0 , - 1 ) // chop off trailer } // { throw new Error('URI of new folder must end in "/" :' + u) } newPaneOptions . newInstance = kb . sym ( u + '/' ) // @@@@ kludge until we can get the solid-client version working // Force the folder by saving a dummy file inside it return kb . fetcher . webOperation ( 'PUT' , newInstance . uri + '.dummy' ) . then ( function ( ) { console . log ( 'New folder created: ' + newInstance . uri ) return kb . fetcher . delete ( newInstance . uri + '.dummy' ) } ) . then ( function ( ) { console . log ( 'Dummy file deleted : ' + newInstance . uri + '.dummy' ) /*
        return kb.fetcher.createContainer(parentURI, folderName) // Not BOTH ways
      })
      .then(function () {
*/ console . log ( 'New container created: ' + newInstance . uri ) return newPaneOptions } ) }
Create a new folder in a Solid system,
Create a new folder in a Solid system