X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/07e84496255ebd1d53108894e0fb8ce98b55ccee..4cc400de436a5dc33b66bc735b5fb6257e066a5a:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index c56ff4a74..4db6e8e15 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -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