don't include symlink info by default in torrents

This commit is contained in:
Arvid Norberg
2010-03-20 07:30:34 +00:00
parent 3e77b161c2
commit c9f7ba495f
3 changed files with 39 additions and 15 deletions

View File

@@ -217,7 +217,12 @@ The ``create_torrent`` class has the following synopsis::
struct create_torrent
{
enum { optimize = 1, merkle = 2, modification_time = 4 };
enum {
optimize = 1
, merkle = 2
, modification_time = 4
, symlink = 8
};
create_torrent(file_storage& fs, int piece_size = 0, int pad_size_limit = -1, int flags = optimize);
create_torrent(torrent_info const& ti);
@@ -244,7 +249,12 @@ create_torrent()
::
enum { optimize = 1, merkle = 2, modification_time = 4 };
enum {
optimize = 1
, merkle = 2
, modification_time = 4
, symlink = 8
};
create_torrent(file_storage& fs, int piece_size = 0, int pad_size_limit = -1, int flags = optimize);
create_torrent(torrent_info const& ti);
@@ -286,6 +296,13 @@ modification_time
with this option enabled, you would get different info-hashes for the
files.
symlink
If this flag is defined, files that are symlinks get a symlink attribute
set on them. The file data will still be the same, the symlink will always
be followed when opening the file, but the file list will include the path
of the symlink so that the original directory structure can be reproduced
on the downloading side.
generate()
----------