FileSystemReport

Configuration file

Yes (optional), see below. Path of start directory can be entered directly in the field " Configuration file" .

Class name

com.ebd.hub.datawizard.util.FileSystemReport

Description


This class is able to create a CSV file with the properties of all files and directories (recursively) below a start directory. The CSV lines start with a "D" for a directory, or "F" for a file. The CSV delimiter is a comma (,).


"D","<directory path>","<directory name>","<alteration time>"

"F","<file path>","<file name>","<alteration time>","<file size>"


The directory path, respectively file path always includes the directory name, respectively file name. The field Configuration file must contain the start directory. For more options, a properties file can alternatively be specified. The alteration time format is the timestamp default:


yyyy-MM-dd HH:mm:ss

Parameters


Parameter

Description

dir

The start directory.

file.pattern

(optional) File name pattern of the files to be considered. Several are specified separated with |. Default: <all>.

recursive.dir

(optional) If false, subdirectories are ignored. Default: true.


Example file
dir=./transfer
file.pattern=*.xml|*.old
recursive.dir=false

Example


If for example, the path ./logs/ is set, a CSV file like the following will be created.


file_system_report.csv
"D","./logs","logs","2014-08-25 13:22:25"
"F","./logs/2014_08_25.adminrequest.log","2014_08_25.adminrequest.log","2014-08-25 13:22:17","0"
"F","./logs/2014_08_25.request.log","2014_08_25.request.log","2014-08-25 13:23:52","2241"
"F","./logs/2014_08_25_server.log","2014_08_25_server.log","2014-08-25 13:22:14","1791"
"D","./logs/CronLogManager","CronLogManager","2014-08-25 13:22:15"
"F","./logs/CronLogManager\error.log","error.log","2014-08-25 13:22:17","223"
...