Code Monkey home page Code Monkey logo

Comments (3)

tobbez avatar tobbez commented on August 18, 2024

This seems to be an invalid issue to me.

The BitTorrent specification (BEP3[1]) specifies that "The name key maps to a UTF-8 encoded string which is the suggested name to save the file (or directory) as. It is purely advisory.", which means that mktorrent's current behavior is correct.

[1] http://www.bittorrent.org/beps/bep_0003.html#metainfo-files-are-bencoded-dictionaries-with-the-following-keys

from mktorrent.

nijet99 avatar nijet99 commented on August 18, 2024

As it's purely advisory - as you point out - it meas that it can be changed without breaking the standards... at least that's how I read it.

from mktorrent.

esmil avatar esmil commented on August 18, 2024

Hi, sorry for the late reply.

toppez is right though. When creating a .torrent file from a directory, the only place the directory name is saved, is in the name field. That is unless you change it, as you do in the example above.

As tobbez quoted "The name key maps to a UTF-8 encoded string which is the suggested name to save the file (or directory) as. It is purely advisory." Here "purely advisory" means your client can chose to save the contents of the torrent in any directory it wants, but it is advised to save it in a new directory named after the name key.

If you just want to create a .torrent file with a different name, you can use:
mktorrent -a "http://tracker.domain.com" -o "/media/torrent_files/MyTorrent unzipped.torrent" MyTorrent

/Esmil

from mktorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.