Skip to content

Commit

Permalink
Reverting "Giving user & group 770 permissions…" (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science authored Aug 14, 2024
1 parent 41ce854 commit bd0b43a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions armi/utils/outputCache.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,13 @@ def store(exePath, inputPaths, outputFiles, cacheDir):
folderLoc = _getCachedFolder(exePath, inputPaths, cacheDir)
if os.path.exists(folderLoc):
deleteCache(folderLoc)
os.makedirs(folderLoc, mode=0o770)
os.makedirs(folderLoc)
_makeOutputManifest(outputsThatExist, folderLoc)

for outputFile in outputsThatExist:
baseName = os.path.basename(outputFile)
cachedLoc = os.path.join(folderLoc, baseName)
shutil.copy(outputFile, cachedLoc)
os.chmod(cachedLoc, 0o770)

runLog.info("Added outputs for {} to the cache.".format(exePath))

Expand Down

0 comments on commit bd0b43a

Please sign in to comment.