Advertisement
HugoBDesigner

Untitled

May 31st, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function love.filesystem.exists(s)
  2.     if type(s) ~= "string" then
  3.         error("Bad argument #1 to function 'love.filesystem.exists': String expected, got " .. type(s))
  4.     end
  5.     return love.filesystem.isFile(s) or love.filesystem.isFolder(s)
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement