[][src]Module ipfs_unixfs::symlink

Symlink creation support UnixFS symlink support. UnixFS symlinks are UnixFS messages similar to single block files, but the link name or target path is encoded in the UnixFS::Data field. This means that the target path could be in any encoding, however it is always treated as an utf8 Unix path. Could be that this is wrong.

Functions

serialize_symlink_block

Appends a dag-pb block for for a symlink to the given target_path. It is expected that the target_path is valid relative unix path relative to the place in which this is used but targets validity cannot really be judged.