FileSystemReport

Group

Time-driven Custom Classes

Configuration file

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

Description


The class FileSystemReport 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

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"
"F",".\logs\CronLogManager\message.log","message.log","2014-08-25 13:22:19","1619"
"D",".\logs\DataWizard","DataWizard","2014-08-25 13:22:15"
"F",".\logs\DataWizard\error.log","error.log","2014-08-25 13:22:17","220"
"F",".\logs\DataWizard\message.log","message.log","2014-08-25 13:23:52","2179"
"D",".\logs\DWClientLog","DWClientLog","2014-08-25 13:22:25"
"F",".\logs\DWClientLog\error.log","error.log","2014-08-25 13:22:27","185"
"F",".\logs\DWClientLog\message.log","message.log","2014-08-25 13:23:52","13723"
"D",".\logs\engdat","engdat","2014-08-25 13:22:17"
"F",".\logs\engdat\error.log","error.log","2014-08-25 13:22:19","180"
"F",".\logs\engdat\message.log","message.log","2014-08-25 13:22:19","461"
"D",".\logs\FtpLog","FtpLog","2014-08-25 13:22:17"
"F",".\logs\FtpLog\error.log","error.log","2014-08-25 13:22:19","180"
"F",".\logs\FtpLog\message.log","message.log","2014-08-25 13:22:19","182"
"D",".\logs\services","services","2014-08-25 13:22:14"
"F",".\logs\services\error.log","error.log","2014-08-25 13:22:15","198"
"F",".\logs\services\message.log","message.log","2014-08-25 13:23:52","40852"
"F",".\logs\statistic.log","statistic.log","2014-08-25 13:22:04","371"
"F",".\logs\threads.log","threads.log","2014-08-25 13:22:04","11646"