Advertisement
DOGGYWOOF

Untitled

Jul 27th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. -- Define the path to the file
  2. local filePath = "/disk/bootloader/VA11-ILLA.lua"
  3.  
  4. -- Function to check if the file exists
  5. local function fileExists(path)
  6. local file = fs.open(path, "r")
  7. if file then
  8. file.close()
  9. return true
  10. else
  11. return false
  12. end
  13. end
  14.  
  15. -- Check if the file exists and display appropriate message
  16. if fileExists(filePath) then
  17. print("VA11-ILLA.lua is installed.")
  18. else
  19. print("Doggy OS isn't installed on your computer.")
  20. end
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement