for d in lfs.dir(lfs.currentdir()) do if lfs.attributes(d).mode == "file" then local c = explode(".",d)[1] if c:find("%a") and #c == 32 then print("Probably a booru, moving: "..d) os.execute("mv "..d.." booru/"..d) end if c:find("AnimeMahou") then print("Probably an AnimeMahou booru moving: "..d) if not lfs.attributes("booru/animahou") then os.execute("mkdir booru/animahou") end os.execute("mv "..d.." booru/animahou/"..d) end end end