mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 15:28:28 +01:00
state: handle non-existing path
Signed-off-by: Ruslan Kuprieiev <[email protected]>
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