Permalink
Browse files

Merge pull request #224 from lukecampbell/file_sys

Stops creation of folders during cleaning only operations.
  • Loading branch information...
2 parents e1136f6 + afb77d3 commit 9fbe24006c69d30ef7a0c9a8e19c8cf3d519d04f @daf daf committed Jan 16, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 pyon/util/file_sys.py
View
3 pyon/util/file_sys.py
@@ -50,7 +50,7 @@ def __new__(cls, *args, **kwargs):
@classmethod
def _clean(cls, config):
for k,v in FileSystem.FS_DIRECTORY.iteritems():
- s = v.lower() # Lower case string
+ s = v.lower()
conf = config.get_safe('container.filesystem.%s' % s, None)
if conf:
FileSystem.FS_DIRECTORY[k] = conf
@@ -59,7 +59,6 @@ def _clean(cls, config):
if os.path.exists(FS_DIRECTORY[k]):
log.info('Removing %s' , FS_DIRECTORY[k])
shutil.rmtree(FS_DIRECTORY[k])
- cls.__makedirs(FileSystem.FS_DIRECTORY[k]) # Catches race condition where concurrent container does the same thing
def __init__(self, CFG):

0 comments on commit 9fbe240

Please sign in to comment.