Copying files during rename

Support for Ubuntu and other Desktop Linux distributions
Post Reply
SantaBlowRudolph
Posts: 9
Joined: 29 Nov 2024, 14:16

Copying files during rename

Post by SantaBlowRudolph »

I would like to know if it's possible to have FileBot just copy files to a new location and then just rename the copied files. I have a freeleech torrent in Deluge thats over 200 gigs and I really don't want to have to do a manual copy of it, plus the files are in individual folders and I would like to be able to have FileBot after it renames the files to only create the new files in the new location without their folders.
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Copying files during rename

Post by rednoah »

:?: Why not just hardlink files?



:idea: A copy operation can copy a file from Path A to Path B in one single operation. There are no intermediate steps. There is no "rename after copy" step. A simple command like cp /a/x.txt /y/b.txt simply doesn't translate well to the Desktop & Mouse paradigm where you do copy & rename simply because it's more intuitive. FileBot will "copy and rename" at the same time because that is what a copy operation does.


:idea: The target file paths is entirely up to your custom format. The target folder can be the current folder or something else. The target file name can be the current file name or something else. Anything is possible.
:idea: Please read the FAQ and How to Request Help.
SantaBlowRudolph
Posts: 9
Joined: 29 Nov 2024, 14:16

Re: Copying files during rename

Post by SantaBlowRudolph »

So if I'm understanding you correctly I can hardlink the contents of /mnt/My Files I/Downloads/Torrents/Christmas HD Movie Collection 1080p [Mp4]/ to say /mnt/My Files I/Movies/Movie Series/Christmas Movies/ and have the original named files left as is so they keep seeding in Deluge while having the correctly named files in the new location?
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Copying files during rename

Post by rednoah »

SantaBlowRudolph wrote: 04 Jan 2025, 22:28 So if I'm understanding you correctly I can hardlink the contents of /mnt/My Files I/Downloads/Torrents/Christmas HD Movie Collection 1080p [Mp4]/ to say /mnt/My Files I/Movies/Movie Series/Christmas Movies/ and have the original named files left as is so they keep seeding in Deluge while having the correctly named files in the new location?
Yes, you can have the same file at multiple file paths, once at the original file path, once at the new well-named file path. The physical data on disk is only there once even if you have many file system entries (i.e. files) that refer to that physical data on disk.

Screenshot
:idea: Please read the FAQ and How to Request Help.
SantaBlowRudolph
Posts: 9
Joined: 29 Nov 2024, 14:16

Re: Copying files during rename

Post by SantaBlowRudolph »

But if I remove the torrent from Deluge including all files then I lose the work I did in FileBot. I'm not concerned about space. I would like FileBot to look at the original, make a copy to my selected location, and then properly rename it.
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Copying files during rename

Post by rednoah »

SantaBlowRudolph wrote: 05 Jan 2025, 12:26 But if I remove the torrent from Deluge including all files then I lose the work I did in FileBot.
No. Deleting the first hardlink (i.e. original file managed by Deluge) has no effect on the second hardlink (i.e. well-named file created by FileBot) and vice versa as both hardlinks equally point to the physical data on disk. Deleting the first hardlink notably does not release any disk space either since the second hardlink still points to the physical data on disk.

Screenshot
:idea: Please read the FAQ and How to Request Help.
Post Reply