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:
parent
dd396a773e
commit
4f33014464
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue