Skip to content

Commit

Permalink
Use File.exist? instead of deprecated File.exists?
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Oct 23, 2020
1 parent d02237c commit fcb5088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/headless/video/video_recorder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def start_capture

def stop_and_save(path)
CliUtil.kill_process(@pid_file_path, :wait => true)
if File.exists? @tmp_file_path
if File.exist? @tmp_file_path
begin
FileUtils.mkdir_p(File.dirname(path))
FileUtils.mv(@tmp_file_path, path)
Expand Down

0 comments on commit fcb5088

Please sign in to comment.