forked from premiere/premiere-libtorrent
added support for sparse files in python binding. potential fix for boost path name check
This commit is contained in:
parent
60ddb5c64a
commit
6b0f60e73d
|
@ -44,6 +44,8 @@ void bind_filesystem()
|
|||
to_python_converter<boost::filesystem::path, path_to_python>();
|
||||
path_from_python();
|
||||
|
||||
boost::filesystem::path::default_name_check(boost::filesystem::native);
|
||||
using namespace boost::filesystem;
|
||||
if (path::default_name_check_writable())
|
||||
path::default_name_check(no_check);
|
||||
}
|
||||
|
||||
|
|
|
@ -201,6 +201,8 @@ void bind_session()
|
|||
.def("add_extension", &add_extension)
|
||||
;
|
||||
|
||||
def("supports_sparse_files", &supports_sparse_files);
|
||||
|
||||
register_ptr_to_python<std::auto_ptr<alert> >();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue