Skip to content

Instantly share code, notes, and snippets.

@ewingson
Created May 24, 2019 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewingson/88dcdaba2db423fc9e750eb197df332e to your computer and use it in GitHub Desktop.
Save ewingson/88dcdaba2db423fc9e750eb197df332e to your computer and use it in GitHub Desktop.
copy_meta_put_recursive_file_jef
const auth = require('solid-auth-cli')
const file = 'https://jeffz.solid.community/public/likes.ttl.meta'
async function run(){
await auth.login()
await auth.fetch(file,{
method:"PUT",
body:"<> a <#test>.",
contentType:"text/turtle"
}).catch(e=>{console.log("Error : "+e)})
let response = await auth.fetch(file).catch(e=>{console.log("Error : "+e)})
console.log(response.status +" "+ response.statusText)
console.log(await response.text())
}
run()
/* output :
404 Not Found
Trying to access metadata file as regular file
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment