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.
Re: Copying files during rename
Posted: 04 Jan 2025, 14:49
by rednoah
Why not just hardlink files?
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.
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.
Re: Copying files during rename
Posted: 04 Jan 2025, 22:28
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?
Re: Copying files during rename
Posted: 05 Jan 2025, 04:27
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.
Re: Copying files during rename
Posted: 05 Jan 2025, 12:26
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.
Re: Copying files during rename
Posted: 05 Jan 2025, 12:34
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.