Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![Directory Watcher hero image](https://img.godotassetlibrary.com/FoZrDz0EE7aluDq8FlYwrFeQ6RMQ52SAFdJi4PbpuIg/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly9naXRodWIuY29tL0tvQmVXaS9Hb2RvdC1EaXJlY3RvcnktV2F0Y2hlci9ibG9iL21hc3Rlci9NZWRpYS9JY29uLnBuZz9yYXc9MQ.webp)
Quick Information
![Directory Watcher icon image](https://img.godotassetlibrary.com/1aECjQ8eNPUyUNkaYllVvyYEJI_rB_w3I6CLEVnSeRw/rs:fit:50:50:0/g:no/aHR0cHM6Ly9naXRodWIuY29tL0tvQmVXaS9Hb2RvdC1EaXJlY3RvcnktV2F0Y2hlci9ibG9iL21hc3Rlci9NZWRpYS9JY29uLnBuZz9yYXc9MQ.webp)
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.
Reviews
Quick Information
![Directory Watcher icon image](https://img.godotassetlibrary.com/1aECjQ8eNPUyUNkaYllVvyYEJI_rB_w3I6CLEVnSeRw/rs:fit:50:50:0/g:no/aHR0cHM6Ly9naXRodWIuY29tL0tvQmVXaS9Hb2RvdC1EaXJlY3RvcnktV2F0Y2hlci9ibG9iL21hc3Rlci9NZWRpYS9JY29uLnBuZz9yYXc9MQ.webp)
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.