Edit of asset "Directory Watcher" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Directory Watcher | Directory Watcher |
Description |
Allows you to watch contents of a directory for file changes. Add DirectoryWatcher to your scene, register a directory and connect signals. It will automatically notify you of added, removed or deleted files. var watcher = DirectoryWatcher.new() add_child(watcher) watcher.add_scan_directory("res://directory") watcher.files_created.connect(on_files_created) watcher.files_modified.connect(on_files_modified) watcher.files_deleted.connect(on_files_deleted) Change 'scan_delay' property to control scanning period (default is 1 second) and 'scan_step' to control scanned files per frame (default is 50). The watcher will go through the file list in a directory and emit the signals at the end of the cycle. Includes built-in documentation. Check the repo page for more details. |
Allows you to watch contents of a directory for file changes. Add DirectoryWatcher to your scene, register a directory and connect signals. It will automatically notify you of added, removed or deleted files. var watcher = DirectoryWatcher.new() add_child(watcher) watcher.add_scan_directory("res://directory") watcher.files_created.connect(on_files_created) watcher.files_modified.connect(on_files_modified) watcher.files_deleted.connect(on_files_deleted) Change 'scan_delay' property to control scanning period (default is 1 second) and 'scan_step' to control scanned files per frame (default is 50). The watcher will go through the file list in a directory and emit the signals at the end of the cycle. Includes built-in documentation. Check the repo page for more details. |
Category | Misc | Misc |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/KoBeWi/Godot-Directory-Watcher | https://github.com/KoBeWi/Godot-Directory-Watcher |
Issues Url | https://github.com/KoBeWi/Godot-Directory-Watcher/issues | https://github.com/KoBeWi/Godot-Directory-Watcher/issues |
Godot version | Godot 4.0 | Godot 4.0 |
Version String | 1.0.1 | 1.0a |
Download Commit | a232b2e1707ac281e9ec11a0c9fcfd1ff1481e0b | c33663a44d370ff32996b89967c987e449ba1d6d |
Download Url (Computed) | https://github.com/KoBeWi/Godot-Directory-Watcher/archive/a232b2e1707ac281e9ec11a0c9fcfd1ff1481e0b.zip | https://github.com/KoBeWi/Godot-Directory-Watcher/archive/c33663a44d370ff32996b89967c987e449ba1d6d.zip |
Icon Url |
https://github.com/KoBeWi/Godot-Directory-Watcher/blob/master/Media/Icon.png?raw=1
|
https://github.com/KoBeWi/Godot-Directory-Watcher/blob/master/Media/Icon.png?raw=1
|