This application watches directories for changes in folders, when they are found the change is uploaded to a database. The database records a hash of each file, the full location, and the computer name where the file is located.
The configuration of this application is a json file which can be specified and will be searched for by the application:
The parameters are:
{
"databasePassword": "password",
"databaseUsername": "username",
"jdbcConnectionUrl": "jdbc:databasetype://your_uri/directory_records_db",
"rootLocations": [
"/opt/database_directory/root1",
"/home/"
],
"excludeRegex": [".txt", "/\.\\S+/"]
}
Note - The excludeRegex field has to escape it's backslash characters whilst this is very annoying it can't be helped. So \d becomes, or the second example above captures all directories starting with a dot.
Doing this will be eventually partnered with another project to create a GUI that will list all the files I have on each of my computers and allow for transfers and quick search capabilities.
This was tested against a MySQL database.