Swiftpack.co - Misoservices/MisoDirectoryObserver as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Misoservices.
Misoservices/MisoDirectoryObserver 1.0.0
Simple, lightweight, Swift directory watcher with callback
⭐️ 3
🕓 4 years ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/Misoservices/MisoDirectoryObserver.git", from: "1.0.0")

MisoDirectoryObserver

Simple, lightweight, Swift directory watcher with callback

This is a very simple directory observer. Technically, it's nearly a one-liner, but to get it right is annoying. Hence this quick snippet. Plug this in your piece of code and reap the rewards of having a free callback whenever your directory is modified.

As added bonus, there is also an ObservableObject version you can use, that will get triggered whenever your folder has changed. This is great for displaying file lists. Derive from this class or us it as-is.

Colophon

The official address for this package

The git / package url

This package is created and maintained by Misoservices Inc. and is licensed under the BSL-1.0: Boost Software License - Version 1.0.

GitHub

link
Stars: 3
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Initial release
4 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics