Merge pull request #640 from efiop/master

state: handle non-existing path
This commit is contained in:
Ruslan Kuprieiev
2018-04-10 02:29:48 +03:00
committed by GitHub
+3
View File
@@ -104,6 +104,9 @@ class State(object):
return str(System.inode(path))
def update(self, path, dump=True):
if not os.path.exists(path):
return None
mtime = self.mtime(path)
inode = self.inode(path)