Remove project cache attribute from project class

This commit is contained in:
Veronica Berglyd Olsen
2022-11-05 23:33:50 +01:00
parent 21ab4e58f9
commit 972ed25a8c
4 changed files with 17 additions and 29 deletions
+7 -12
View File
@@ -76,18 +76,6 @@ class NWStorage:
return self._runtimePath / "content"
return None
@property
def metaPath(self):
if self._runtimePath is not None:
return self._runtimePath / "meta"
return None
@property
def cachePath(self):
if self._runtimePath is not None:
return self._runtimePath / "cache"
return None
##
# Core Methods
##
@@ -172,6 +160,13 @@ class NWStorage:
return self._runtimePath / "meta" / fileName
return None
def getCacheFile(self, fileName):
"""Return the path to a file in the project cache folder.
"""
if self._runtimePath is not None:
return self._runtimePath / "cache" / fileName
return None
def readLockFile(self):
"""Read the project lock file.
"""