Is there anyway to set all of my files in my documentsDirectory faster? I have hundreds of file in there and it’s really hard to set it’s ICloud Sync to false one by one.
Try this
local lfs = require “lfs”
local doc_dir = system.DocumentsDirectory
local doc_path = system.pathForFile("", doc_dir)
for file in lfs.dir(doc_path) do
native.setSync( file, { iCloudBackup = false } )
end
Okay thanks, i’ll try it right now!
Try this
local lfs = require “lfs”
local doc_dir = system.DocumentsDirectory
local doc_path = system.pathForFile("", doc_dir)
for file in lfs.dir(doc_path) do
native.setSync( file, { iCloudBackup = false } )
end
Okay thanks, i’ll try it right now!