cbconvert icon indicating copy to clipboard operation
cbconvert copied to clipboard

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

Open user9931 opened this issue 2 years ago • 10 comments

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

user9931 avatar Dec 29 '23 12:12 user9931

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

gen2brain avatar Dec 29 '23 13:12 gen2brain

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.

stuntguy3000 avatar Apr 19 '24 12:04 stuntguy3000

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.

gen2brain avatar Apr 19 '24 12:04 gen2brain

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

stuntguy3000 avatar Apr 19 '24 12:04 stuntguy3000

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

gen2brain avatar Apr 19 '24 12:04 gen2brain

Yes :)

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

stuntguy3000 avatar Apr 19 '24 12:04 stuntguy3000

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 avatar Apr 19 '24 12:04 gen2brain

Source meaning input, original file etc.

gen2brain avatar Apr 19 '24 12:04 gen2brain

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

stuntguy3000 avatar Apr 19 '24 12:04 stuntguy3000

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.

gen2brain avatar Apr 19 '24 13:04 gen2brain