- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 08:20 AM
Hi,
I want to find out the count of files in a directory, could you please suggest how to achieve it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 10:33 PM
Hi @amit.saroha
I think nsinggam means this.
- the first snap is a directory browser where you just put down the path of your directory (full path of your org (name in top right corner) with the project space en project name next to it so like.
org/projectspace/projectname - Next in the filter snapp you filter on type: $Type == “File”
- in the aggregate snap you choose count then define the fields to count for example the names or other unique field and then choose the result field names: e.g $totalFiles
But I don’t know why there is a yellow triangle, anyone knows why ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 05:04 AM
Hi Amit,
You can use the directory browser to fetch all the files and sub directories and filter only files using Type, then use the aggregate snap to get the count.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 06:36 AM
@nsingam, Thank you, could you provide a example please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 10:33 PM
Hi @amit.saroha
I think nsinggam means this.
- the first snap is a directory browser where you just put down the path of your directory (full path of your org (name in top right corner) with the project space en project name next to it so like.
org/projectspace/projectname - Next in the filter snapp you filter on type: $Type == “File”
- in the aggregate snap you choose count then define the fields to count for example the names or other unique field and then choose the result field names: e.g $totalFiles
But I don’t know why there is a yellow triangle, anyone knows why ?
