mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
Merge pull request #640 from efiop/master
state: handle non-existing path
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user