Changeset - 8603ab0b9fa8
[Not reviewed]
default
0 1 0
Drew Perttula - 8 years ago 2017-06-10 07:15:07
drewp@bigasterisk.com
rdfdb log noise
Ignore-this: 6a8e97bae341002400337d12cc12532d
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
bin/rdfdb
Show inline comments
 
@@ -203,12 +203,15 @@ class WatchedFiles(object):
 
                                        callbacks=[self.dirChange])
 
        finally:
 
            self.initialLoad = False
 

	
 
    def dirChange(self, watch, path, mask):
 
        if mask & IN_CREATE:
 
            if path.path.endswith(('~', '.swp', 'swx', '.rdfdb-temp')):
 
                return
 
                
 
            log.debug("%s created; consider adding a watch", path)
 
            self.watchFile(path.path)
 
            
 
    def watchFile(self, inFile):
 
        """
 
        consider adding a GraphFile to self.graphFiles
0 comments (0 inline, 0 general)