Are there restrictions for the name of IPFS links?

From @JustinDrake on Wed Nov 23 2016 14:21:22 GMT+0000 (UTC)

In the whitepaper, an IPFSLink is defined as

type IPFSLink struct {
  Name string
  Hash Multihash
  Size int
}

The paper then allows for content addressing using the name. It is noted that paths work like in traditional UNIX filesystems and the Web.

Can Name be an arbitrary string, with characters such as whitespace or /, or any character disallowed in web URIs? Does the protocol require that Name be sanitised so that OSes/filesystems/applications can safely parse name paths?

Copied from original issue: https://github.com/ipfs/faq/issues/201

From @lgierth on Wed Nov 23 2016 14:57:49 GMT+0000 (UTC)

I’m not sure there are any restrictions right now. If a link name contains a forward-slash, you just won’t be able to address it through the standard ipfs tools (cli, gateway, fuse). There’s a lengthy interesting discussion in ipfs/go-ipfs#1710.