Hi all,
I am working with JSL to collect and filter files from a directory.
The basic filtering logic (name, extension, size) works correctly, but I am running into issues when trying to add a reliable Creation Date filter.
This code correctly finds non‑empty .txt files whose names contain "result":
Names Default To Here(1);
folderPath = "C:/Users/.../test";
fileListOrig = Files In Directory(folderPath, Recursive(1));
fileList = Filter Each({v, i}, fileListOrig,
Contains(v, "result") &
Ends With(v, ".txt") &
File Size(folderPath || v) > 0
);
// Data Cleaning
For( i = 1, i <= N Items( fileList ), i++,
fileName = fileList[i];
...
What is the recommended or reliable way in JSL to filter files by creation date on Windows when combining Files In Directory with Filter Each?
Thanks,