Re: Reading only latest file
Yes, I've got the same idea. Thanks. Tom On Tue, 27 Aug 2019, 10:49 Arpad Boda, wrote: > Quite a special case, I would go for executescript proc and do the logic > you need in Python. > > On Tue, Aug 27, 2019 at 8:45 AM Tomislav Novosel > wrote: > >> Hi Arpad, >> >> The thing is I don't have exact file creation frequency and it is not >> always the same. Also, files was created months ago. >> >> Regards, >> Tom >> >> On Mon, 26 Aug 2019 at 11:59, Arpad Boda wrote: >> >>> Tom, >>> >>> What about ListFile->FetchFile flowchain, ListFile configured with a >>> maximum file age lower than the frequency of the file creation you have? >>> >>> Regards, >>> Arpad >>> >>> On Mon, Aug 26, 2019 at 10:19 AM Tomislav Novosel >>> wrote: >>> Any ideas? Thanks, Tom On Thu, 22 Aug 2019 at 16:06, Tomislav Novosel wrote: > Hi all, > > I have scenario where I need to read only the latest(the youngest) > file according to creation date. The files are: > > Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date > 2019-07-22T17:24:44+0200 > Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date > 2019-07-22T17:26:14+0200 > > So I need to fetch only the second file which is the youngest. > I have multiple folders with files and they are filtered by extension > (.ifl). > > How can I filter them and fetch only the youngest .ifl file from every > folder? > > BR, > Tom > >
Re: Reading only latest file
Quite a special case, I would go for executescript proc and do the logic you need in Python. On Tue, Aug 27, 2019 at 8:45 AM Tomislav Novosel wrote: > Hi Arpad, > > The thing is I don't have exact file creation frequency and it is not > always the same. Also, files was created months ago. > > Regards, > Tom > > On Mon, 26 Aug 2019 at 11:59, Arpad Boda wrote: > >> Tom, >> >> What about ListFile->FetchFile flowchain, ListFile configured with a >> maximum file age lower than the frequency of the file creation you have? >> >> Regards, >> Arpad >> >> On Mon, Aug 26, 2019 at 10:19 AM Tomislav Novosel >> wrote: >> >>> Any ideas? >>> Thanks, >>> Tom >>> >>> On Thu, 22 Aug 2019 at 16:06, Tomislav Novosel >>> wrote: >>> Hi all, I have scenario where I need to read only the latest(the youngest) file according to creation date. The files are: Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date 2019-07-22T17:24:44+0200 Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date 2019-07-22T17:26:14+0200 So I need to fetch only the second file which is the youngest. I have multiple folders with files and they are filtered by extension (.ifl). How can I filter them and fetch only the youngest .ifl file from every folder? BR, Tom
Re: Reading only latest file
Hi Arpad, The thing is I don't have exact file creation frequency and it is not always the same. Also, files was created months ago. Regards, Tom On Mon, 26 Aug 2019 at 11:59, Arpad Boda wrote: > Tom, > > What about ListFile->FetchFile flowchain, ListFile configured with a > maximum file age lower than the frequency of the file creation you have? > > Regards, > Arpad > > On Mon, Aug 26, 2019 at 10:19 AM Tomislav Novosel > wrote: > >> Any ideas? >> Thanks, >> Tom >> >> On Thu, 22 Aug 2019 at 16:06, Tomislav Novosel >> wrote: >> >>> Hi all, >>> >>> I have scenario where I need to read only the latest(the youngest) file >>> according to creation date. The files are: >>> >>> Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date >>> 2019-07-22T17:24:44+0200 >>> Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date >>> 2019-07-22T17:26:14+0200 >>> >>> So I need to fetch only the second file which is the youngest. >>> I have multiple folders with files and they are filtered by extension >>> (.ifl). >>> >>> How can I filter them and fetch only the youngest .ifl file from every >>> folder? >>> >>> BR, >>> Tom >>> >>>
Re: Reading only latest file
Hi Arpad, The thing is I don't have exact file creation frequency and it is now always the same. Also, files was created months ago. Regards, Tom On Mon, 26 Aug 2019 at 11:59, Arpad Boda wrote: > Tom, > > What about ListFile->FetchFile flowchain, ListFile configured with a > maximum file age lower than the frequency of the file creation you have? > > Regards, > Arpad > > On Mon, Aug 26, 2019 at 10:19 AM Tomislav Novosel > wrote: > >> Any ideas? >> Thanks, >> Tom >> >> On Thu, 22 Aug 2019 at 16:06, Tomislav Novosel >> wrote: >> >>> Hi all, >>> >>> I have scenario where I need to read only the latest(the youngest) file >>> according to creation date. The files are: >>> >>> Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date >>> 2019-07-22T17:24:44+0200 >>> Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date >>> 2019-07-22T17:26:14+0200 >>> >>> So I need to fetch only the second file which is the youngest. >>> I have multiple folders with files and they are filtered by extension >>> (.ifl). >>> >>> How can I filter them and fetch only the youngest .ifl file from every >>> folder? >>> >>> BR, >>> Tom >>> >>>
Re: Reading only latest file
Tom, What about ListFile->FetchFile flowchain, ListFile configured with a maximum file age lower than the frequency of the file creation you have? Regards, Arpad On Mon, Aug 26, 2019 at 10:19 AM Tomislav Novosel wrote: > Any ideas? > Thanks, > Tom > > On Thu, 22 Aug 2019 at 16:06, Tomislav Novosel > wrote: > >> Hi all, >> >> I have scenario where I need to read only the latest(the youngest) file >> according to creation date. The files are: >> >> Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date >> 2019-07-22T17:24:44+0200 >> Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date >> 2019-07-22T17:26:14+0200 >> >> So I need to fetch only the second file which is the youngest. >> I have multiple folders with files and they are filtered by extension >> (.ifl). >> >> How can I filter them and fetch only the youngest .ifl file from every >> folder? >> >> BR, >> Tom >> >>
Re: Reading only latest file
Any ideas? Thanks, Tom On Thu, 22 Aug 2019 at 16:06, Tomislav Novosel wrote: > Hi all, > > I have scenario where I need to read only the latest(the youngest) file > according to creation date. The files are: > > Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date > 2019-07-22T17:24:44+0200 > Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date > 2019-07-22T17:26:14+0200 > > So I need to fetch only the second file which is the youngest. > I have multiple folders with files and they are filtered by extension > (.ifl). > > How can I filter them and fetch only the youngest .ifl file from every > folder? > > BR, > Tom > >
Reading only latest file
Hi all, I have scenario where I need to read only the latest(the youngest) file according to creation date. The files are: Load_Dump_1.001.2019-07-22_17-22-45994.ifl - creation date 2019-07-22T17:24:44+0200 Load_Dump_1.001.2019-07-22_17-25-09132.ifl - creation date 2019-07-22T17:26:14+0200 So I need to fetch only the second file which is the youngest. I have multiple folders with files and they are filtered by extension (.ifl). How can I filter them and fetch only the youngest .ifl file from every folder? BR, Tom