The Around operation in a filter doesn't seem to work
In the Modify folder window, the following list of two filters doesn't exclude files modified this year. Enable Target Op Value Or Patterns Matches * And Time Around 2011/06/04 12:00:00+12:00:00 Am I doing something wrong, or is the Around operation not working well?
Not sure yet as I have to remember how to use this. Maybe Andrea or IgorBeg are better able to address this. On Fri, Jun 21, 2024 at 11:48 AM Bulhwi Cha via Cin < [email protected]> wrote:
In the Modify folder window, the following list of two filters doesn't exclude files modified this year.
Enable Target Op Value Or Patterns Matches * And Time Around 2011/06/04 12:00:00+12:00:00
Am I doing something wrong, or is the Around operation not working well? -- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
Enable Target Op Value Or Patterns Matches * And Time Around 2011/06/04 12:00:00+12:00:00
I am not familiar with such filtering, so I may be saying the wrong thing: shouldn't "And Not" be used to exclude files? I also wonder if the "value" set is correct for taking files from an entire year. Isn't it meant to take only files from that specific day(/year/month)?
On Sat, 22 Jun 2024, Andrea paz via Cin wrote:
Enable Target Op Value Or Patterns Matches * And Time Around 2011/06/04 12:00:00+12:00:00
I am not familiar with such filtering, so I may be saying the wrong
I am also not familiar with this, but being familiar with computer programming, I would interpret this expression as: either "Time Around something" or "Patterns Matches *" As perhaps any file matches "*" under Unix, the complete expression is always true, and the "Time Around" part of the expression has no effect. _______________________________________________________________________________ Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected] _______________________________________________________________________________
On Sat Jun 22, 2024 at 11:02 PM KST, Andrea paz via Cin wrote:
Enable Target Op Value Or Patterns Matches * And Time Around 2011/06/04 12:00:00+12:00:00
I am not familiar with such filtering, so I may be saying the wrong thing: shouldn't "And Not" be used to exclude files? I also wonder if the "value" set is correct for taking files from an entire year. Isn't it meant to take only files from that specific day(/year/month)?
Sorry for the late reply; I've been busy doing other work. I think the filter list above is supposed to include ONLY the files modified on June 4, 2011. Compare it with the following filter list: Enable Target Op Value Or Patterns Matches * And Time Ge >= 2011/06/04 00:00:00 And Time Lt < 2011/06/05 00:00:00 This list works as I expected the previous list to do. Any files modified this year are excluded from the user folder.
Yes, like you (Bulhwi_Cha), I think that Around with Time target doesn't work. I never used Around. Tested it just now. BUT... Let's suppose We have our files with dates from 2014 to 2023. 1. If we want all the files exluding that before 2018/12/31 and after 2021/01/01: Enable Target Op Value Or Time Gt> 2018/12/31 00:00:00 And Time Lt< 2021/01/01 00:00:00 2. If we want all the files except between 2018/12/31 and after 2021/01/01: Enable Target Op Value Or Not Time Gt> 2018/12/31 00:00:00 Or Not Time Lt< 2021/01/01 00:00:00 ALWAYS delete the filter: Or | Patterns | Matches | * because it changes the result of the filters Or, And,... Note: Other Enable options above, for the points 1. and 2., may work for the same result. IgorBeg 21/06/2024 09:51, Bulhwi Cha via Cin wrote:
In the Modify folder window, the following list of two filters doesn't exclude files modified this year.
Enable Target Op Value Or Patterns Matches * And Time Around 2011/06/04 12:00:00+12:00:00
Am I doing something wrong, or is the Around operation not working well?
Sorry for the point #2. The right one without "... between 2018/12/31 and *AFTER* 2021/01/01". 2. If we want all the files except between 2018/12/31 and 2021/01/01: Enable Target Op Value Or Not Time Gt> 2018/12/31 00:00:00 Or Not Time Lt< 2021/01/01 00:00:00 ALWAYS delete the filter: Or | Patterns | Matches | * because it changes the result of the filters Or, And,...
On Sun Jun 23, 2024 at 8:11 PM KST, Igor BEGHETTO via Cin wrote:
ALWAYS delete the filter: Or | Patterns | Matches | * because it changes the result of the filters Or, And,...
I think it does the opposite when it's the FIRST rule of a filter list, which is quite surprising. Let's suppose that you've excluded all files from the user folder by mistake. After that point, nothing will change even if you apply the following filter list: Enable Target Op Value And Time Ge >= 2011/06/04 00:00:00 And Time Lt < 2011/06/05 00:00:00 In order to get the result you want, the list should be as follows: Enable Target Op Value Or Patterns Matches * And Time Ge >= 2011/06/04 00:00:00 And Time Lt < 2011/06/05 00:00:00 Here's an alternative: Enable Target Op Value Or Time Ge >= 2011/06/04 00:00:00 And Time Lt < 2011/06/05 00:00:00 It's confusing, but I think this is how filters currently work. Perhaps we need to change it.
Sorry for the point #2. The right one without "... between 2018/12/31 and *AFTER* 2021/01/01".
2. If we want all the files except between 2018/12/31 and 2021/01/01: Enable Target Op Value Or Not Time Gt> 2018/12/31 00:00:00 Or Not Time Lt< 2021/01/01 00:00:00
Did you mean "BEFORE 2018/12/31 and AFTER 2021/01/01"?
2. If we want all the files except between 2018/12/31 and 2021/01/01: Enable Target Op Value Or Not Time Gt> 2018/12/31 00:00:00 Or Not Time Lt< 2021/01/01 00:00:00 Did you mean "BEFORE 2018/12/31 and AFTER 2021/01/01"? Exactly!
My examples, I use, below: ### z_myMediaBin_2018_only ### Enable Target Op Value Or Time Ge >= 2018/01/01 00:00:00 And Time Lt < 2019/01/01 00:00:00 ### z_myMediaBin_between2019-2020 ### Enable Target Op Value Or Time Ge >= 2019/01/01 00:00:00 And Time Lt < 2021/01/01 00:00:00 ### z_myMediaBin_exceptBetween2019-2020 ### Enable Target Op Value Or Not Time Ge >= 2019/01/01 00:00:00 Or Not Time Lt < 2021/01/01 00:00:00 The characters "z_" in the head of the folder name is to put them in the bottom of the list in the Resource window.
participants (5)
-
Andrea paz -
Bulhwi Cha -
Georgy Salnikov -
Igor BEGHETTO -
Phyllis Smith