gen2brain / cbconvert

CBconvert is a Comic Book converter
GNU General Public License v3.0
176 stars 11 forks source link

[FR] [gui] ability to save into same directory where original files and replace original files #25

Open user9931 opened 6 months ago

user9931 commented 6 months ago

as title: ability to save into same directory where original files and replace original files

such a great and easy-to-use gui app, but really miss an option to just replace original files with converted ones

gen2brain commented 6 months ago

What happens if the original file is .cbr or .cb7?

stuntguy3000 commented 2 months ago

To this, I'd love for a feature to have it place the output file alongside the original files. This would enable the very simple bulk conversion of heaps of files at once WHILST maintaining a document structure.

gen2brain commented 2 months ago

Again, if the file is e.g. .cbr, cbconvert can place the output file alongside, if the file is .cbz the original will be overwritten. In both cases, replace/overwrite or alongside there are inconsistencies.

stuntguy3000 commented 2 months ago

I'm not sure if I fully understand but I'm referring more to the archival output file.

gen2brain commented 2 months ago

Yes, so you wish the output file to end in the source directory right?

stuntguy3000 commented 2 months ago

Yes :)

The power to this is when you're dealing with MANY source files across MANY folders, it makes the process so much quicker.

gen2brain commented 2 months ago

I explained why that would be a bad option, cbconvert can output only .cbz or .cbt, so if the source file is .cbz it will be overwritten. I don't want to add the option that can destroy the user source file and that behaves differently based on source type.

gen2brain commented 2 months ago

Source meaning input, original file etc.

stuntguy3000 commented 2 months ago

Right, okay - I think I've slightly misunderstood the use of this application. That reasoning sounds logical then

gen2brain commented 2 months ago

Convert recursively, it will maintain the structure in the output dir, move only after you have confirmed that everything is as it should be, there could be errors, skipped files, etc. I would not trust any application to do an in-place replacement. You can also do it directory by directory, where you can set the same output dir as the source dir, and add some --suffix to be safe.