CSV Parser
‎Feb 12, 2019
12:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Feb 12, 2019
12:38 AM
CSV Parser
Can anyone suggest me, when there are multiple files in the repository(for ex: XYZ_01FEB,XYZ_02FEB something like this) and i'm using the CSV Parser Read File functionality,how can i make sure my service is reading each file. For example every 5 min the new file will get added to the repository.So how can i read each file here when the naming convention changes(timestamp gets appended to the file eachtime a new file gets placed).
?
Labels:
- Labels:
-
Extensions
3 REPLIES 3
‎Feb 12, 2019
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Feb 12, 2019
03:00 AM
You should leverage FileRepository methods in order to list files and act accordingly:
- ListFiles({ path: "" }
- Iterate over previous list files
- For instance once a file it's processed, remove or move to another folder with:
- DeleteFile({ path: "" })
- MoveFile({ sourcePath: "", overwrite: true/false, targetPath: "" })
‎Feb 12, 2019
03:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Feb 12, 2019
03:48 PM
Hi !
I did not get this.
2. Iterate over previous list files
Could you please explain me this still more.May be with some example code. Since the file names are different i'm not able to do this.
‎Feb 13, 2019
09:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Feb 13, 2019
09:11 AM
Hi,
How we can use the listfile function to read a filename appended with
timestamp.
Should we use some pattern matching?
How we can use the listfile function to read a filename appended with
timestamp.
Should we use some pattern matching?