dat-storage icon indicating copy to clipboard operation
dat-storage copied to clipboard

creating empty folders on fs

Open joehand opened this issue 6 years ago • 0 comments

Right now if you archive.mkdir('/dir') it does not make the directory on the file system (https://github.com/datproject/dat-node/issues/164):

var hyperdrive = require('hyperdrive')
var storage = require('dat-storage')

var archive = hyperdrive(storage('./test'), {latest: true})
archive.mkdir('/my-dir', function (err) {
  console.log(err)
})

joehand avatar Aug 10 '17 18:08 joehand