Page 1 of 1

Packer Dialog: Filename field and " "

Posted: 2011-10-02, 22:18 UTC
by Biozynotiker
TC currently adds automaticly " " between the packerstring and the suggested path/filename,
when there was a whitespace somewhere in the path or the selected folders to archive.
Example: rar:"C:\Dir\File with whitespace.rar"

And there is no " " set, when the suggested path/filename has no whitespace in it.
Example: rar:C:\Dir\File_without_whitespace.rar

Whats about to add these " " everytime to the string, after the "ok" button is pressed?
So you have not to look for whitespaces, everytime you edit the suggested path/filename.

Sure there must be a check, in the case the user has added " " manually before pressing ok, to avoid double " ".
Setting the " " everytime should not be a problem, even there is no whitespace.

Posted: 2011-10-03, 06:19 UTC
by MVV
I would prefer adding " " before dialog is shown. So, user will see and edit quoted path. After closing dialog quotes are absolutely senseless since quotes are used only in user interface and never passed with names internally.

Posted: 2011-10-03, 06:58 UTC
by Biozynotiker
... since quotes are used only in user interface and never passed with names internally.
In this case (if I understand you right), quotes are in general senseless.

Adding quotes before or after the dialog should be never mind.
But looking for whitespace everytime and add quotes manually is not that comfortable.

Posted: 2011-10-03, 07:17 UTC
by MVV
Seems it was done for external packers that are called by TC - in such case quotes are necessary because parameters with spaces must be quoted.
But it is correctly to quote filenames always.
Also TC may automatically quote all names before passing to external packer...