You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following bash session, where I create a directory with a single file:
stephen // tmp $ cat > foo/hello
world
stephen // tmp $ ls foo
hello
stephen // tmp $ ipscend init
This utility will walk you through creating a ipscend.json file.
Path of your Web Application (project)? (public) foo
stephen // tmp $ ipscend publish
{ hash: 'QmeXrqL7QXTD8XWR12je7nCjyRaDu7EpkHpgLw5mPJn2Ti',
timestamp: Thu Jan 07 2016 13:44:52 GMT-0600 (CST) }
published foo QmeXrqL7QXTD8XWR12je7nCjyRaDu7EpkHpgLw5mPJn2Ti
stephen // tmp $ ipfs ls QmeXrqL7QXTD8XWR12je7nCjyRaDu7EpkHpgLw5mPJn2Ti
QmSse56Tcq3y23LjGNfVKyEfPno7w5JdzHBYvUHdyNjAH3 65 foo/
QmaRGe7bVmVaLmxbrMiVNXqW4pRNNp3xq7hFtyRKA3mtJL 14 hello
stephen // tmp $ ipfs ls QmeXrqL7QXTD8XWR12je7nCjyRaDu7EpkHpgLw5mPJn2Ti/foo
QmaRGe7bVmVaLmxbrMiVNXqW4pRNNp3xq7hFtyRKA3mtJL 14 hello
The published site includes foo/ itself, which duplicates the root contents. It looks like ipfs-api is doing this: the daemon returns an ipfs object that has a link to the directory being added, as well as the root's contents.
Not sure if this is intentional, but it's an easy fix if not. (Use the second-last hash in the result array in publish.js.)
The text was updated successfully, but these errors were encountered:
Consider the following bash session, where I create a directory with a single file:
The published site includes
foo/
itself, which duplicates the root contents. It looks likeipfs-api
is doing this: the daemon returns an ipfs object that has a link to the directory being added, as well as the root's contents.Not sure if this is intentional, but it's an easy fix if not. (Use the second-last hash in the result array in
publish.js
.)The text was updated successfully, but these errors were encountered: