Use FileUtils.mv instead of File.rename as it will do a copy+delete when

the source and target are not on the same filesystem. Closes #670.
This commit is contained in:
Tom Hughes 2008-02-07 23:53:20 +00:00
parent dd396a773e
commit 4f33014464

View file

@ -301,7 +301,7 @@ private
@trace.timestamp = Time.now
if @trace.save
File.rename(filename, @trace.trace_name)
FileUtils.mv(filename, @trace.trace_name)
else
FileUtils.rm_f(filename)
end