.
This commit is contained in:
parent
28713a02ae
commit
2895690914
@ -24,13 +24,13 @@ local copyList = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print("[Syncing]")
|
print("[Syncing start]")
|
||||||
for i=0, #copyList do
|
for i=0, #copyList do
|
||||||
getRequest = http.get(prefix .. copyList[i])
|
getRequest = http.get(prefix .. copyList[i])
|
||||||
print("Downloaded " .. copyList[i])
|
print("[wget] " .. copyList[i])
|
||||||
file = fs.open(copyList[i], "w")
|
file = fs.open(copyList[i], "w")
|
||||||
file.write(getRequest.readAll())
|
file.write(getRequest.readAll())
|
||||||
file.close()
|
file.close()
|
||||||
end
|
end
|
||||||
print("[Sync complete]")
|
print("[Sync end]")
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user