yinyin / filewatcher Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
load remove operations in watch entries configuration
the meta db cannot work in this configuration
need to do something to workaround this ...
check before do unique file renaming and etc.
diff -r 8405c0a363ec scripts/lib-aissftpwatcher/filewatcher/filewatchconfig.py
--- a/scripts/lib-aissftpwatcher/filewatcher/filewatchconfig.py Tue Sep 25 14:54:54 2012 -0600
+++ b/scripts/lib-aissftpwatcher/filewatcher/filewatchconfig.py Tue Sep 25 14:55:01 2012 -0600
@@ -367,6 +367,8 @@
or ( isinstance(v, unicode) and (v in (u'Y', u'y', u'1', u'Yes', u'YES', u'yes', u'T', u'True',)) )
):
process_as_uniqname = True
+ else:
+ process_as_uniqname = False
ignorance_checker = None
if 'ignorance-checker' in entry_cfg:
diff -r 8405c0a363ec scripts/lib-aissftpwatcher/filewatcher/watcher.py
--- a/scripts/lib-aissftpwatcher/filewatcher/watcher.py Tue Sep 25 14:54:54 2012 -0600
+++ b/scripts/lib-aissftpwatcher/filewatcher/watcher.py Tue Sep 25 14:55:01 2012 -0600
@@ -174,7 +174,7 @@
# ### def deactivate
def __perform_operation(self, filename, folderpath, orig_path, target_path, operate_list, oprexec_ref):
- #print "oplist: %r" % (operate_list,)
+ print "oplist: %r" % (operate_list,)
for opr_block in operate_list:
current_filepath = target_path
block_log_queue = []
@@ -210,7 +210,7 @@
event_type - 事件型別 (FEVENT_NEW, FEVENT_MODIFIED, FEVENT_DELETED)
"""
- if (True == self.global_config.recursive_watch) and ('' != folderpath):
+ if (False == self.global_config.recursive_watch) and ('' != folderpath):
print "ignored - recursive watch disabled. (folderpath = %r)" % (folderpath,)
return
current design of run_watcher
does not allow external module injection. add additional parameter to allow such injection would be need for extend this package and still keep development independence for both parties.
implement the operation driver in WatcherEngine
check if the query is empty for lookup_ignorance_checker
extract to componentprop
module
allow easy management of activate and de-activate
lib/filewatcher/filewatcgconfig.py:342, unexpect keywork defaule_value
found some potential bugs in configuration module, should have some unit tests
load remove operations in watch entries configuration
--- a/lib/filewatcher/monitor/linux_inotify.py Fri Nov 01 18:38:46 2013 +0800
+++ b/lib/filewatcher/monitor/linux_inotify.py Fri Nov 01 18:51:13 2013 +0800
@@ -227,7 +227,7 @@
wdd = _watchmanager.add_watch(target_directory, mask, rec=True, auto_add=auto_add_folder)
if _revise_period is not None:
watcher_instance.process_driver.append_periodical_call(_periodical_folder_reviser, None, _revise_period)
watcher_instance.process_driver.append_periodical_call(_periodical_folder_reviser, target_directory, _revise_period)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.