Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f02e1948b7
|
||
|
|
a32638860e
|
@@ -95,8 +95,8 @@ If *action* is delete, delete non-empty directories if *rec* is set to True.
|
|||||||
```python
|
```python
|
||||||
move_rule = FileManagerRule(
|
move_rule = FileManagerRule(
|
||||||
action="move",
|
action="move",
|
||||||
src_re="^/src_path/(?P<path>.*).to_move$",
|
src_re=r"^/src_path/(?P<path>.*).to_move$",
|
||||||
dst_re="/dst_path/\g<path>",
|
dst_re=r"/dst_path/\g<path>",
|
||||||
auto_create=False,
|
auto_create=False,
|
||||||
rec=False,
|
rec=False,
|
||||||
filemode=None,
|
filemode=None,
|
||||||
@@ -107,7 +107,7 @@ move_rule = FileManagerRule(
|
|||||||
|
|
||||||
delete_rule = FileManagerRule(
|
delete_rule = FileManagerRule(
|
||||||
action="delete",
|
action="delete",
|
||||||
src_re="^/src_path/(?P<path>.*).to_delete$",
|
src_re=r"^/src_path/(?P<path>.*).to_delete$",
|
||||||
rec=False)
|
rec=False)
|
||||||
|
|
||||||
file_sched = FileManagerScheduler(
|
file_sched = FileManagerScheduler(
|
||||||
@@ -260,23 +260,23 @@ pyinotifyd.add_watch(
|
|||||||
```python
|
```python
|
||||||
move_rule = FileManagerRule(
|
move_rule = FileManagerRule(
|
||||||
action="move",
|
action="move",
|
||||||
src_re="^/src_path/(?P<path>.*)\.to_move$",
|
src_re=r"^/src_path/(?P<path>.*)\.to_move$",
|
||||||
dst_re="/dst_path/\g<path>",
|
dst_re=r"/dst_path/\g<path>",
|
||||||
auto_create=True,
|
auto_create=True,
|
||||||
filemode=0o644,
|
filemode=0o644,
|
||||||
dirmode=0o755)
|
dirmode=0o755)
|
||||||
|
|
||||||
copy_rule = FileManagerRule(
|
copy_rule = FileManagerRule(
|
||||||
action="copy",
|
action="copy",
|
||||||
src_re="^/src_path/(?P<path>.*)\.to_copy$",
|
src_re=r"^/src_path/(?P<path>.*)\.to_copy$",
|
||||||
dst_re="/dst_path/\g<path>",
|
dst_re=r"/dst_path/\g<path>",
|
||||||
auto_create=True,
|
auto_create=True,
|
||||||
filemode=0o644,
|
filemode=0o644,
|
||||||
dirmode=0o755)
|
dirmode=0o755)
|
||||||
|
|
||||||
delete_rule = FileManagerRule(
|
delete_rule = FileManagerRule(
|
||||||
action="delete",
|
action="delete",
|
||||||
src_re="^/src_path/(?P<path>.*)\.to_delete$",
|
src_re=r"^/src_path/(?P<path>.*)\.to_delete$",
|
||||||
rec=False)
|
rec=False)
|
||||||
|
|
||||||
file_sched = FileManagerScheduler(
|
file_sched = FileManagerScheduler(
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ from pyinotify import ProcessEvent, ExcludeFilter
|
|||||||
from pyinotifyd._install import install, uninstall
|
from pyinotifyd._install import install, uninstall
|
||||||
from pyinotifyd.scheduler import TaskScheduler, Cancel
|
from pyinotifyd.scheduler import TaskScheduler, Cancel
|
||||||
|
|
||||||
__version__ = "1.0.1"
|
__version__ = "1.0.2"
|
||||||
|
|
||||||
|
|
||||||
def setLoglevel(loglevel, logname=None):
|
def setLoglevel(loglevel, logname=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user