Skip to content

Commit

Permalink
remove GCD-based FileMonitor
Browse files Browse the repository at this point in the history
Its capabilities are too limited when it comes to monitoring folders.
There's no benefit in keeping it around right now.
  • Loading branch information
DivineDominion committed Dec 13, 2016
1 parent a30a212 commit 5a10cb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 97 deletions.
4 changes: 0 additions & 4 deletions RxFileMonitor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
50E835641DD1B28400783B62 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E835631DD1B28400783B62 /* AppDelegate.swift */; };
50E835661DD1B28400783B62 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50E835651DD1B28400783B62 /* Assets.xcassets */; };
50E835691DD1B28400783B62 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 50E835671DD1B28400783B62 /* MainMenu.xib */; };
50E8356F1DD1BAEE00783B62 /* FileMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E8356E1DD1BAEE00783B62 /* FileMonitor.swift */; };
50E835701DD1BE2700783B62 /* RxFileMonitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50E835431DD1B26900783B62 /* RxFileMonitor.framework */; };
50E835711DD1BE2700783B62 /* RxFileMonitor.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 50E835431DD1B26900783B62 /* RxFileMonitor.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
50E835761DD1D1C200783B62 /* FolderContentMonitor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E835751DD1D1C200783B62 /* FolderContentMonitor.swift */; };
Expand Down Expand Up @@ -76,7 +75,6 @@
50E835651DD1B28400783B62 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
50E835681DD1B28400783B62 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
50E8356A1DD1B28400783B62 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
50E8356E1DD1BAEE00783B62 /* FileMonitor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FileMonitor.swift; sourceTree = "<group>"; };
50E835751DD1D1C200783B62 /* FolderContentMonitor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FolderContentMonitor.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -113,7 +111,6 @@
5096B2BD1DD222D000076058 /* Monitors */ = {
isa = PBXGroup;
children = (
50E8356E1DD1BAEE00783B62 /* FileMonitor.swift */,
50E835751DD1D1C200783B62 /* FolderContentMonitor.swift */,
5096B2B41DD21D0B00076058 /* Change.swift */,
5096B2C01DD22D6000076058 /* FolderContentChangeEvent.swift */,
Expand Down Expand Up @@ -326,7 +323,6 @@
50E835761DD1D1C200783B62 /* FolderContentMonitor.swift in Sources */,
5096B2C11DD22D6000076058 /* FolderContentChangeEvent.swift in Sources */,
5096B2BC1DD221D700076058 /* RxFileMonitor.swift in Sources */,
50E8356F1DD1BAEE00783B62 /* FileMonitor.swift in Sources */,
5096B2B51DD21D0B00076058 /* Change.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
93 changes: 0 additions & 93 deletions RxFileMonitor/FileMonitor.swift

This file was deleted.

6 changes: 6 additions & 0 deletions RxFileMonitor/FolderContentMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

import Foundation

/// Monitor for a particular file or folder. Change events
/// will fire when the contents of the URL changes:
///
/// If it's a folder, it will fire when you add/remove/rename files or folders
/// below the reference paths. See `Change` for an incomprehensive list of
/// events details that will be reported.
public class FolderContentMonitor {

var callback: ((FolderContentChangeEvent) -> Void)?
Expand Down

0 comments on commit 5a10cb0

Please sign in to comment.