So I found the solution we used before... is there a reason this code hasn't been changed? Is there a better way to do what I want to do?
Here is the solution we used:
Yes, you have to modify lib/galaxy/objectstore/__init__.py:
In class DiskObjectStore find the function
'update_from_file' (line ~340) and replace:
try:
shutil.copy(file_name,
self.get_filename(obj, **kwargs))
except IOError, ex:
log.critical('Error copying %s to %s: %s'
% (file_name,
self._get_filename(obj, **kwargs),
ex))
by:
try:
if os.path.isdir(file_name):
dir_name = self._get_filename(obj,
**kwargs)
os.remove(dir_name)
shutil.copytree(file_name, dir_name)
else:
shutil.copy(file_name,
self.get_filename(obj, **kwargs))
except IOError, ex:
log.critical('Error copying %s to %s: %s'
% (file_name,
self._get_filename(obj, **kwargs),
ex))
- Nik.