leginon-org / leginon-redmine-archive

1 stars 0 forks source link

redux cachefs may attempt to remove root diskcache_path #5263

Closed leginonbot closed 8 months ago

leginonbot commented 8 months ago

Author Name: Anchi Cheng (@anchi2c) Original Redmine Issue: 5263, https://emg.nysbc.org/redmine/issues/5263 Original Date: 2017-10-12 Original Assignee: Sargis Dallakyan


The removal of empty parent directory make this a possible situation.

The error message:

  File "/Users/acheng/myami/redux/cachefs.py", line 142, in remove
    self.removedir(os.path.dirname(name), recursive=True)
  File "/Users/acheng/miniconda/lib/python2.7/site-packages/fs-0.5.1-py2.7.egg/fs/errors.py", line 257, in wrapper
    return func(self,*args,**kwds)
  File "/Users/acheng/miniconda/lib/python2.7/site-packages/fs-0.5.1-py2.7.egg/fs/osfs/__init__.py", line 291, in removedir
    raise RemoveRootError(path)
RemoveRootError: Can't remove root dir

We don't want it to stop redux.

leginonbot commented 8 months ago

Original Redmine Comment Author Name: Sargis Dallakyan (@dallakyan) Original Date: 2017-10-24T22:37:38Z


Thanks Anchi.