// Rattach attaches a fid to the root for the given user.  aname and afid are not used.
Rattach attaches a fid to the root for the given user.  aname and afid are not used.
// Rattach attaches a fid to the root for the given user . aname and afid are not used .
func (fs *fileServer) Rattach(fid protocol.FID, afid protocol.FID, uname string, aname string) (protocol.QID, error) {
	if afid != protocol.NOFID {
		return protocol.QID{}, ErrUnknownFID
	}
	fs.setFile(fid, fs.ipfs.Root())
	return getQid(fs.ipfs.Root()), nil
}
func ( fs * fileServer ) Rattach ( fid protocol . FID , afid protocol . FID , uname string , aname string ) ( protocol . QID , error ) { if afid != protocol . NOFID { return protocol . QID { } , ErrUnknownFID } fs . setFile ( fid , fs . ipfs . Root ( ) ) return getQid ( fs . ipfs . Root ( ) ) , nil }
Rattach attaches a fid to the root for the given user.
Rattach attaches a fid to the root for the given user .