Because of aforementioned 'must move file before the end of request' we
have been using File.rename() to move the file. Unfortunately
File.rename doesn't work across file systems - and sometimes /tmp is
mounted on a different file-system.
Switched to System.cmd() which feels wrong, but works while I find a
better alternative.
Because of aforementioned 'must move file before the end of request' we have been using File.rename() to move the file. Unfortunately File.rename doesn't work across file systems - and sometimes /tmp is mounted on a different file-system.
Switched to System.cmd() which feels wrong, but works while I find a better alternative.