I need a help creating a simple function which will:
- Search the specified folder (which never changes) and its subfolders for files modified today.
- Trim the files names to leave only a string of 5 characters i.e. “order 0076789.pdf” to be trimmed to “76789”
- Save the above strings in an array, .json or any other useful variable/format
- Do 2,3&4 for a different folder
- Display the html with a table with 3 columns - 1st column with a list of values from 3 - 2nd column with a list of values from 4. and the last columns with values of 1st cloumn minus 2nd cloumn - i.e. if 76789 is in both 1st and 2nd - do not display it in 3rd.
- referesh the page when a new file is created in either folder.