Directory Watcher

An asset by KoBeWi
The page banner background of a mountain and forest
Directory Watcher hero image

Quick Information

0 ratings
Directory Watcher icon image
KoBeWi
Directory Watcher

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.connect("files_created", self, "on_files_created")watcher.connect("files_modified", self, "on_files_modified")watcher.connect("files_deleted", self, "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.Check the repo page for more details.

Supported Engine Version
3.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

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.connect("files_created", self, "on_files_created")
watcher.connect("files_modified", self, "on_files_modified")
watcher.connect("files_deleted", self, "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.

Check the repo page for more details.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Directory Watcher icon image
KoBeWi
Directory Watcher

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.connect("files_created", self, "on_files_created")watcher.connect("files_modified", self, "on_files_modified")watcher.connect("files_deleted", self, "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.Check the repo page for more details.

Supported Engine Version
3.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers