-
Notifications
You must be signed in to change notification settings - Fork 299
[windows] util.addFromFs
goes up almost to the root directory
#408
Comments
Also fixed ipfs-inactive#408 whilst in the area - `util.addFromFs` goes up almost to the root directory for files. It looks like for directories it was fixed in 42ccb00, but it is now fixed for files too.
Thanks! Fixed in v12.1.3 and newer, correct? |
Correct :) Thanks to the awesome @JeffDownie :D |
The problem seems to persist in IPFS API v12.1.4, this issue should be reopened. Here's a screenshot to demonstrate the problem: In its topmost lines In its bottom lines the recursive |
Found this as I am having same effect "goes up to the root" when using Passing an array of objects each with an absolute path (without a content property) does bubble up to root. macos 10.12.5 Could not reproduce the same issue with const ipfsAPI = require('ipfs-api')
const api = ipfsAPI('/ip4/127.0.0.1/tcp/5001')
api.files.add([
{
path: '/Users/name/Desktop/file.png'
// should have content property here
}
])
.then(console.log)
.catch(console.error) Note: it seems to not matter if the file exists or not. |
util.addFromFs
goes up almost to the root directoryutil.addFromFs
goes up almost to the root directory
With ipfs/js-ipfsd-ctl#164 (thanks @thisconnect) I would be down to add appveyor CI to this module since we have so many users of go-ipfs and js-ipfs-api in Windows. Thoughts? |
Looks like PR #624 will fix this problem.
|
Merged and released as v15.1.0. Thank you @richardschneider ! :D |
…t dir is the last
I've just tried
util.addFromFs
(on a directory of Bootstrap) and received the following array:It stores in IPFS the
bootstrap
directory and its contents, which is good, but then it goes up to three levels of parent directories (almost to the root), which is not so good because:it's somewhat scary (resembling a permanent data leak) even though it does not really store in IPFS anything from those parent directories except the name of the child it came from,
it's not convenient (because it means I cannot just grab the last element of the returned array and assume that's
bootstrap
).Some technical details: JS IPFS API v11.0.1, Node.js v6.8.1 (64-bit), Windows 7 Professional Service Pack 1 (64-bit).
The text was updated successfully, but these errors were encountered: