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
ipfs init
ipfs daemon &
mkdir -p ~/test/test2/hello/
echo "Aperture Science" >> ~/test/test2/hello/world.txt
ipfs add -r -w ~/test
ipfs get -o ~/Downloads/test /ipfs/`ipfs id -f='<id>'`/test/
ls -R ~/Downloads/test
Results in:
/home/ninja/Downloads/test:
hello
/home/ninja/Downloads/test/hello:
world.txt
Yet leaving out the trailing slash after the path portion at the end of the get command:
mkdir -p ~/test/test2/hello/
echo "Aperture Science" >> ~/test/test2/hello/world.txt
ipfs add -r -w ~/test
ipfs get -o ~/Downloads/test /ipfs/`ipfs id -f='<id>'`/test
ls -R ~/Downloads/test
Results in:
/home/ninja/Downloads/test:
test2
/home/ninja/Downloads/test/test2:
hello
/home/ninja/Downloads/test/test2/hello:
world.txt
It seems leaving out the trailing slash after the path in the ipfs get command allows the folder structure to download correctly, but adding one in causes ipfs get to squash subfolders of the parent folder together right in your output path.
This is probably quite dangerous and counter-intuitive.
The text was updated successfully, but these errors were encountered:
yuri-sevatz
changed the title
ipfs get drops parent directory in output when <ipfs_path> contains trailing slash ('/')
ipfs get drops containing directory structure in output when <ipfs_path> contains trailing slash ('/')
Feb 19, 2018
Version information:
ipfs version 0.4.13
Type:
Bug
Description:
Results in:
Yet leaving out the trailing slash after the path portion at the end of the get command:
Results in:
It seems leaving out the trailing slash after the path in the
ipfs get
command allows the folder structure to download correctly, but adding one in causesipfs get
to squash subfolders of the parent folder together right in your output path.This is probably quite dangerous and counter-intuitive.
The text was updated successfully, but these errors were encountered: