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?
How to zip events with no directory names?
-
- Posts: 2
- Joined: Tue Oct 11, 2016 2:42 pm
Re: How to zip events with no directory names?
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.
The directory structure has meaning.
In any event, zm doesn't currently support doing that. You will have to write that yourself.
-
- Posts: 2
- Joined: Tue Oct 11, 2016 2:42 pm
Re: How to zip events with no directory names?
Even for a single Event? In my tests, it seems that all files are stored in a single directory inside the zip file.iconnor wrote:Problem is that the jpg filenames are not unique.
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).
Re: How to zip events with no directory names?
You could turn off the deep storage mode entirely, in which case it won't do the timestamp dir structure.