How to zip events with no directory names?

Forum for questions and support relating to the 1.29.x releases only.
Locked
ricardomenzer
Posts: 2
Joined: Tue Oct 11, 2016 2:42 pm

How to zip events with no directory names?

Post by ricardomenzer »

I'm using Zoneminder 1.29.0 and configured A filter to upload the events via FTP to a server. Everything is working fine, except that the zip file contains all the directory names. I want to get only the image filaes at the "root" of the zip. Is that possible?
I can see the zip command has the -j switch, which does what I want, but I couldn't find anywhere in Zoneminder's configuration to add that.

Below are the filter and the Configurations regarding the Upload options.
Maybe I can use a custom command on all matches to achieve this?
filter_opt.png
filter_opt.png (17.7 KiB) Viewed 1395 times
options_opt.png
options_opt.png (41.35 KiB) Viewed 1395 times
User avatar
iconnor
Posts: 3276
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: How to zip events with no directory names?

Post by iconnor »

Problem is that the jpg filenames are not unique.

The directory structure has meaning.

In any event, zm doesn't currently support doing that. You will have to write that yourself.
ricardomenzer
Posts: 2
Joined: Tue Oct 11, 2016 2:42 pm

Re: How to zip events with no directory names?

Post by ricardomenzer »

iconnor wrote:Problem is that the jpg filenames are not unique.
Even for a single Event? In my tests, it seems that all files are stored in a single directory inside the zip file.
I understand that, for different events, the filenames may be the same.

The directory is a kind of datestamp, isn't it? That information is not relevant to my application (the timestamp is in the frames already).
User avatar
iconnor
Posts: 3276
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: How to zip events with no directory names?

Post by iconnor »

You could turn off the deep storage mode entirely, in which case it won't do the timestamp dir structure.
Locked