Index

RBFileChangeMonitor.swift

Classes


RBFileChangeMonitor

Detects changes in a set of files.

Properties

The unique storage key for this file change monitor. Checksums are stored here.
public var storageKey String { get }

Functions

Saves internally tracked changes if there are any.
public func saveChecksums()

Checks for changes to the given files and internally tracks the changes. You may call saveChecksums after calling this method to save the internally tracked values.
@param fileUrls : The URLs to the files to check for changes in.
@returns Whether or not any changes were detected.
public func checkIfChangesOccurred(inFiles fileUrls: [URL]) -> RBFileChangeMonitorResult


RBFileChangeMonitorResult

Stores the outcome of a RBFileChangeMonitor file check.

Properties

Whether or not any changes were detected.
public let modified Bool { get set }

The files that were new.
public let newFiles [URL] { get set }

The files that were modified.
public let modifiedFiles [URL] { get set }

The files that were removed.
public let removedFiles [URL] { get set }