🔥 CheckDir 🔥
This function can check if a path exists, if it exists it will return true, and if it does not exist it will return false.
🔥 Example 🔥
function checkPath(dir)
return os.rename(dir,dir) or false
end
if checkPath("/storage/emulated/0/Documents/") then
gg.alert("Documents path exists!")
end
if not(checkPath("/storage/emulated/0/Document/")) then
gg.alert("Path No Document Exist!")
end
This function can check if a path exists, if it exists it will return true, and if it does not exist it will return false.
🔥 Example 🔥
function checkPath(dir)
return os.rename(dir,dir) or false
end
if checkPath("/storage/emulated/0/Documents/") then
gg.alert("Documents path exists!")
end
if not(checkPath("/storage/emulated/0/Document/")) then
gg.alert("Path No Document Exist!")
end