This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Trouble adding folders with specific kinds of characters in the folder #450
Closed
Description
Adding folders with {recursive: true}
works on all of the folders I try, even big ones.
However, when adding a folder with characters like "[" or "(" in the name, it fails in a mysterious way:
> var ipfs = ipfsAPI('localhost', '5001', {protocol: 'http'})
undefined
> function cb (err, res) { console.log(err, res) }
undefined
> var path = '/Users/ffff/Music/John Coltrane - A Love Supreme (Vinyl) (1964) [V0]/'
undefined
> ipfs.util.addFromFs(path, {recursive: true}, cb)
null []
When I add this folder with ipfs add -r
, it works with no problem.