ChangeDetector

ChangeDetector

•  •  11 updates •  11h 47m

ChangeDetector is a program that detects modifications, deletions, or creations of files and folders within the current directory. It then sends details about these changes to various sources.

By Lucas

Timeline

Lucas
Lucas 1h spent working 77d ago

finally use json for configuration (still need to use arrays instead of comma separated strings tho...)
add file & folder blacklisting

Update attachment
Lucas
Lucas 1h spent working 80d ago

add better documentation
this will probbaly be the last update

Lucas
Lucas 58m spent working 81d ago

fix some CORS issues, just allowing everything rn
no longer have a new thread for each FolderWatcher callback, now using a ArrayList containing each callback and a for loop to run each.
guess whether its a file or folder on deletion event (maybefolder, and maybefile types)
have a central class for generating the json (GetEventJSON.run())

Lucas
Lucas 55m spent working 83d ago

add some cool colors
fix some files without the license at the top
make server-sent-events send the same data as webhooks

Update attachment
Lucas
Lucas 1h spent working 84d ago

Attempted to not show events for hidden folders /files. (It is surprisingly difficult because Java won't let you use .isHidden() unless the file exists). This will likely only completely work on Linux, on Windows, deleting hidden files will probably still cause an event.

arthur arthur 3 months ago
why is it an issue to not be able to call .isHidden() on a file that doesn't exist? also i hope you know that you misspelled the project name :heavysob:, it's detector not detecteranyway cool project good job so far
Lucas
Lucas 17m spent working 85d ago

small wording fix

mellina mellina 3 months ago
5 hours?? (okay I would probably misspell something and spend five hours tying to find it too :)
Lucas
Lucas 18m spent working 86d ago
  • migrate config handling to misc package
  • implement ParseChange so it reads better in the webhook
Update attachment
Lucas
Lucas 1h spent working 87d ago
  • add license (gplv3)
  • supports web-hooks now!!! :)
Update attachment
Lucas
Lucas 7m spent working 88d ago

use json now ;)

Lucas
Lucas 1h spent working 89d ago
  • Now using a command system.
  • Added Setup command for configuring the application
  • Added Start Command for starting the program (only sse is implemented as of now)
  • Created config class to store configuration
  • Updated errors in SSEConnect to be professional
  • Include file that was changed and whether it was created, modified or deleted.
Lucas
Lucas 1h spent working 89d ago

basic first version.
includes:
- sends updates via http/sse server hosted on localhost:1337. (does not include details of event yet).
- very messy watching code that works recursively from the current directory.