GithubHelp home page GithubHelp logo

filewatcher's People

Contributors

yinyin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

filewatcher's Issues

bugs on handling unique run and perform recursive_watch

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

allow external module injection

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.

argument key error

lib/filewatcher/filewatcgconfig.py:342, unexpect keywork defaule_value

need unit tests

found some potential bugs in configuration module, should have some unit tests

need pass target-folder as argument for periodical ignorer

--- 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)
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.