Specifying the File Analytics folder depth
A parameter, , is available to specify folder depth for File Analytics.
To specify the folder depth for the report summary, add the following parameter when executing the command -Dfa.export.folderDepth=x where "x" is the depth. By default the depth is set to 1.
To turn off reporting on parents, add the following parameter when executing the command -Dfa.export.includeParents=No. By default reporting on parents is turned on.
To specify the name of the output file use -Dfa.export.reportFileName=SomeReportName.csv. If this parameter is not specified the default output file will be report.csv.
For example:
java -classpath /opt/aptare/portal/WEB-INF/lib/*:/opt/aptare/portal/ WEB-INF/classes/ -Dfa.export.folderDepth=2 -Dfa.export.includeParents=No -Dtest.resourceLocation=opt/aptare/portal/WEB-INF/classes/ com.aptare.sc.service.fa.FaSubDirectoryReport
As an example, the table that follows, uses these directory structures to show the results of different parameter values:
D1
D1/SD1
D1/SD1/SD2
D2/SD3
D3
This table illustrates the expected results given the different parameter values:
Table:
fa.export.folder Depth | fa.export.include Parents | Directories Included in Report |
|---|---|---|
0 | N/A | D1 D2 D3 |
1 | N/A | D1 D1/SD1 D2 D2/SD3 D3 |
2 | No | D1/SD1 D1/SD1/SD2 D2/SD3 D3 |