Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Deterministic paths option causing custom command pattern "!&" expand to all files

Thanks for your report.
So would an acceptable solution be that the "Keep temporary copies of remote files in deterministic paths" would not apply for custom commands? It might even be a good idea, as even a read-only custom command (like text search/grep-kind of command) might inadvertently overwrite a file you are just editing.
julianraya

Deterministic paths option causing custom command pattern "!&" expand to all files

I have a custom command that uses WinMerge to view the differences in two remote files.
The command is:
cmd /C "C:\Program Files (x86)\WinMerge\WinMergeU.exe" /u /wl /wr !&

"Local Command" is checked
"Use Remote Files" is unchecked.
"Apply to directories" is unchecked.
This works as expected, the selected files (!&) are downloaded and opened with WinMerge.

But when I check the storage preference "Keep temporary copies of remote files in deterministic paths", the !& pattern no longer expands to the selected files, but it seems to expand to all files that I have in my temp directory.

I like using the deterministic paths option for many reasons, mainly because when I use Sublime Text, I can see all of the files as they are organized on the server.

I am using version 5.19.5 on Windows 10.