Skip to content

Commit

Permalink
file_exists() fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
surrim committed Jun 18, 2023
1 parent be81cf5 commit 6f5f276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlc-delete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The author is not responsible for damage caused by this extension.
end

function file_exists(file)
retval, err = os.execute("if exist \"" .. file .. "\" @(call)")
retval, err = os.execute("if exist \"" .. file .. "\" (exit 0) else (exit 1)")
return type(retval) == "number" and retval == 0
end

Expand Down

0 comments on commit 6f5f276

Please sign in to comment.