Latest 0.1.1
Homepage https://github.com/dagostini/DAFileMonitor
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Description

With this library you can monitor a file for changes and you will receive a callback when the file changes. It’s as simple as that :) The library itself is a wrapper around dispatch sources.

You can read more about the library on my blog: http://agostini.tech/2017/08/06/monitoring-files-using-dispatch-sources/

Usage

var fileMonitor = DAFileMonitor(withFilePath: filePath)
fileMonitor?.onFileEvent = {
    // This closure is called when your file changes.
}

Installation

DAFileMonitor is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "DAFileMonitor"

Author

Dejan Agostini, [email protected]

License

DAFileMonitor is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DAFileMonitor",
    "version": "0.1.1",
    "summary": "A library that allows you to monitor a file for changes.",
    "description": "This is a wrapper library around dispatch sources that monitors the file system for changes on a file. When the monitored file changes, a closure gets called.",
    "homepage": "https://github.com/dagostini/DAFileMonitor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Dejan Agostini": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dagostini/DAFileMonitor.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/dagostin",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "DAFileMonitor/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This