Skip to content

Commit

Permalink
state: don't create dirs for local state
Browse files Browse the repository at this point in the history
Fixes iterative#312

Signed-off-by: Ruslan Kuprieiev <[email protected]>
  • Loading branch information
efiop committed Dec 7, 2017
1 parent 84789d3 commit 56036b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dvc/state_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,4 @@ def save(self):
self.PARAM_CACHE_TIMESTAMP : self.cache_timestamp
}

file_dir = os.path.dirname(self.data_item.local_state.relative)
if not os.path.isdir(file_dir):
os.makedirs(file_dir)

self._save(self.data_item.local_state.relative, res)

0 comments on commit 56036b0

Please sign in to comment.