View Single Post
  #4  
Old 2024-12-22, 04:29 AM
Orangeboy's Avatar
Orangeboy Orangeboy is offline
Independent collector
 
Join Date: Oct 2012
Location: East Moline, Illinois
Re: How to name torrent different from directory

Many if not all operating systems provide the ability to "link" files, opposed to copying them. In other words, you can have many different logical pointers (links) to the same physical file. On Windows, the mklink command is provided:

Code:
help mklink
Creates a symbolic link.

MKLINK [[/D] | [/H] | [/J]] Link Target

        /D      Creates a directory symbolic link.  Default is a file
                symbolic link.
        /H      Creates a hard link instead of a symbolic link.
        /J      Creates a Directory Junction.
        Link    Specifies the new symbolic link name.
        Target  Specifies the path (relative or absolute) that the new link
                refers to.
MKLINK /H "new path\new filename" "old path\old filename"

... will create a "hardlink" with the new filename you want to torrent to the old filename without using any disk space.

On Linux, it looks like the "ln" command does the same.

Because links merely point to the same file on disk, do NOT alter any link (add tags/metadata/etc.) unless it is your intention to alter the original.
__________________
My avatar sucks

Reply With Quote Reply with Nested Quotes