Skip to content

This cross-platform app monitors file and directory changes, tracking creation, modification, deletion, and movement in real time. It features a user-friendly GUI, robust CLI, log management, import/export of watchlists, error resilience, and supports multiple directories for versatile use cases.

License

Notifications You must be signed in to change notification settings

MentalGravity101/DirectoryGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DG1 0 1 dg1 0 2

467476370_4042821199375361_1693924073173039145_n (1)

Screenshot 2024-11-21 172732

Screenshot 2024-11-21 172926

Screenshot 2024-11-21 173003

Key Features

  1. Real-Time Monitoring Detects and logs file or directory events: Creation: Tracks newly created files or folders. Modification: Captures updates to file contents or metadata. Deletion: Logs removed files or directories. Movement: Monitors files or directories that are renamed or moved to another location. Supports monitoring multiple directories simultaneously.

  2. Cross-Platform Compatibility Works on major operating systems like Windows, macOS, and Linux. Ensures consistent performance across platforms with minimal configuration.

  3. Dual Interface: GUI and CLI GUI: Intuitive interface using ttkbootstrap for a modern look and feel. CLI: Comprehensive commands for: Starting directory monitoring. Viewing or filtering logs. Cleaning up old logs based on retention periods. Useful for power users or integration with automated scripts.

  4. Logging and Event Management Captures detailed information about each event: Timestamp: Exact time of the event. Source: Whether the event involves a file or a directory. Path: Full path to the affected file or directory. Change Type: Type of change (e.g., Created, Modified, Deleted, Moved). Size Before/After: File size comparison for modification events. Logs are stored in a database, ensuring durability and easy access. Users can view logs via: GUI TreeView: Displays logs in a structured format with filtering and search options. CLI Commands: Output logs in a readable format or filter based on criteria like change type.

  5. Import/Export Functionality Export Directories: Save the list of monitored directories to a file for backup or sharing. Import Directories: Load directories from a file and automatically add them to the active monitoring list. Validates directory paths and avoids duplicates.

  6. Robust Error Handling Resilient to common issues like: Permission Errors: Handles restricted access gracefully without crashing. Threading Errors: Automatically resets the monitoring thread if stopped or interrupted. Provides meaningful error messages and continues operation during unexpected exceptions.

  7. Search and Filtering GUI: Search logs by keywords or criteria (e.g., timestamps, paths, change types). Refresh logs dynamically to reflect the latest events. CLI: Filter logs by specific attributes (e.g., change_type=Modified).

  8. Directory Management Allows real-time addition and removal of monitored directories. Displays a live list of all actively monitored directories in the GUI..

  9. Log Cleanup Efficient cleanup of old logs to save disk space: Specify retention periods (e.g., delete logs older than 30 days). Available via both GUI and CLI.

About

This cross-platform app monitors file and directory changes, tracking creation, modification, deletion, and movement in real time. It features a user-friendly GUI, robust CLI, log management, import/export of watchlists, error resilience, and supports multiple directories for versatile use cases.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages