ipfs files cp <symlink> show "Error: symlinks not yet supported"
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
#### Version information:
go-ipfs version: 0.4.15-
Repo version: 6
System version: amd64/linux
Golang version: go1.10.2
Latest stable in Gentoo
Also recreated with
go-ipfs version: 0.4.17-
Repo version: 7
System version: amd64/linux
Golang version: go1.10.3
#### Type:
Bug(s)
#### Description:
+ mkdir -p builds/20180410T010424Z
+ ipfs add --nocopy --raw-leaves --local -r builds
added QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn builds/20180410T010424Z
added QmVkg29SP2ZCc24HAcSCjCUd1gfP4u32EPsyNoo5nvr2aY builds
+ ipfs files cp /ipfs/QmVkg29SP2ZCc24HAcSCjCUd1gfP4u32EPsyNoo5nvr2aY /builds
+ ln -s 20180410T010424Z builds/latest
+ ls -lh builds
total 4.0K
drwxr-xr-x 2 distfiles distfiles 4.0K Jul 28 23:03 20180410T010424Z
lrwxrwxrwx 1 distfiles distfiles 16 Jul 28 23:03 latest -> 20180410T010424Z
+ ipfs add --nocopy --raw-leaves --local builds/latest
added QmVhYBuGh6vKyQY3kP4ZH6m9jFvfzjCShs95pG6M9LUvc3 latest
0 B / ? [---------------------------------------------------------------------------------------------------------------------------------------------=]
+ **ipfs files cp** /ipfs/QmVhYBuGh6vKyQY3kP4ZH6m9jFvfzjCShs95pG6M9LUvc3 /builds/latest
**Error: symlinks not yet supported**
_Note that we get an error message here ...._
+ ipfs files ls /builds
latest
20180410T010424Z
_But here we can see that it was still added seemingly without issues_
+ ipfs files stat /builds
QmYde2c7rdNfPXwJcHKwfvfu4tLYa5fuAFg4kbtSHfzPaF
Size: 0
CumulativeSize: 152
ChildBlocks: 2
Type: directory
+ ipfs files ls /builds/20180410T010424Z
+ ipfs files stat /builds/20180410T010424Z
QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn
Size: 0
CumulativeSize: 4
ChildBlocks: 0
Type: directory
+ ipfs files ls /builds/latest
latest
+ **ipfs files stat** /builds/latest
**Error: unrecognized node type: Symlink**
Script found at zb2rhobUBn2cxPp3azT6saXfma7bzPAVyinrpnEszhkFKWCQs
From the above it seems that `Error: symlinks not yet supported` Should be removed when used with `ipfs files cp` since it does what it is supposed to? Or it should be changed to a Warning.
When doing `ipfs files stat` on a symlink we get `Error: unrecognized node type: Symlink` - Even if a node type is unrecognized it should still output the same stats, especially the hash.
So my suggestion is to move the error to after output, especially relevant if `--hash` was used.
Contributor guide
Assessment
This issue has not been assessed yet.