Add to Named Archive puts ZIP in parent folder when using Expanded Folders

Add to Named Archive puts ZIP in parent folder when using Expanded Folders

Hi,

I have noticed something confusing when using Expanded Folders in Directory Opus.

For example, I am in:

S:\Spel-Steam

and expand a subfolder directly in the file display. I can see and select the files inside that expanded subfolder without navigating into it.

If I select a file inside the expanded subfolder and use:

Directory Opus Archives → Add to ".zip"

the ZIP file is created in:

S:\Spel-Steam

instead of in the actual folder containing the selected source file.

If I first navigate into the subfolder itself and perform exactly the same operation, the ZIP is created in the expected location, next to the source file.

This seems a little inconsistent, since the documentation for Add to Named Archive says:

“The new archive will be located in the same folder as the source files.”

Is the behaviour with Expanded Folders intentional?

Ideally, I would expect Add to ".zip" to create the archive in the actual folder containing the selected file, regardless of whether I have navigated into that folder or am accessing the file through Expanded Folders.

I cannot remember this behaving this way in earlier versions of Directory Opus, although I may simply not have noticed it before.

Is there a setting which makes Add to Named Archive use the selected file's actual folder when working with Expanded Folders, or would this require a custom command/script?

Thanks.

Yes, the default command uses the current folder as its destination, not the subfolder.

You can change the command to use the selected file’s parent as the destination instead of the current folder. (But consider how it would work if you selected files below two different folders.)

Thanks. That is exactly the behaviour I want, since I normally select files from only one expanded subfolder.

What would the exact command be to make Add to Named Archive use the selected file's parent folder as the destination?

I tried:
Copy ARCHIVE=.zip TO="{filepath|..}"

but the archive was still created in the current/root folder.

Are you sure? The command looks alright.