Skip to content

Commit

Permalink
Revert "Initial MacOS Support"
Browse files Browse the repository at this point in the history
This reverts commit b4ac9d7.
  • Loading branch information
rob-white committed Oct 22, 2018
1 parent b4ac9d7 commit 65d77d3
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 256 deletions.
4 changes: 1 addition & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ name = "pypi"

[packages]
pyinotify = {version = "*", platform_system = "== 'Linux'"}
pypiwin32 = {version = "*", platform_system = "== 'Windows'"}
macfsevents = {version = "*", platform_system = "== 'Darwin'"}
pywin32 = {version = "*", platform_system = "== 'Windows'"}

[dev-packages]
twine = "*"
pytest = "*"
pylint = "*"
127 changes: 21 additions & 106 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 2 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
> Watch folders for file/directory events with a simple API.
## Supports
* Linux, Windows, Mac
* Linux & Windows
* Python 2.7 & 3.4-3.7

## Installation
Expand Down Expand Up @@ -115,34 +115,8 @@ FolderSpy.watch(SaveFolder())
"""An event occurred that was on a directory."""
```

### Mac
```python
def process_IN_ATTRIB(self, event):
"""Metadata changed for a file."""

def process_IN_CREATE(self, event):
"""A file/directory was created in watched directory."""

def process_IN_DELETE(self, event):
"""A file/directory was deleted in watched directory."""

def process_IN_MODIFY(self, event):
"""A file was modified."""

def process_IN_MOVED_FROM(self, event):
"""A file/directory was moved away from the current watched directory."""

def process_IN_MOVED_TO(self, event):
"""A file/directory was moved into the current watched directory."""
```

## Dependencies
* Linux: ```pyinotify```
* Windows: ```pypiwin32```
* Mac: ```macfsevents```

## To-Do
* Start/Exit Events
* MacOS Support
* Tests
* Clean-up

Expand Down
4 changes: 0 additions & 4 deletions folderspy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
__version__ = '0.0.4'

import platform

if platform.system() == 'Windows':
from .windows import WatchableFolder, FolderSpy
elif platform.system() == 'Linux':
from .linux import WatchableFolder, FolderSpy
elif platform.system() == 'Darwin':
from .mac import WatchableFolder, FolderSpy
else:
raise Exception('{0} is not a supported.'.format(platform.system()))
2 changes: 1 addition & 1 deletion folderspy/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.4'
__version__ = '0.0.3'
4 changes: 2 additions & 2 deletions folderspy/linux/spy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def _setup_watchers(folders):
proc_fun=folder,
rec=folder.recursive
)

@staticmethod
def _event_loop(folders, **kwargs):
def _event_loop(folders):
"""Kicks off the event loop that begins watching for events."""

asyncore.loop()
2 changes: 0 additions & 2 deletions folderspy/mac/__init__.py

This file was deleted.

57 changes: 0 additions & 57 deletions folderspy/mac/folder.py

This file was deleted.

Loading

0 comments on commit 65d77d3

Please sign in to comment.