Script can't copy anymore a file from iCloud Drive since iOS 11.4.1
I had a script who copies a file from a folder of my iCloud Drive.
fil = '/private/var/mobile/Library/Mobile Documents/com~apple~Numbers/Documents/Xxxx.numbers' shutil.copy(fil,local_path)
I have updated my iPad to iOS to 11.4.1 and now I get an error during shutil.copy:
PermissionError: [Errno 1] Operation not permitted: '/private/var/mobile/Library/Mobile Documents/com~apple~Numbers/Documents/Xxxx.numbers'
fil = dialogs.pick_document(types=['public.item'])
works but needs an user intervention to select the file...
To @omz is it possible to restrict to one file type by something like
fil = dialogs.pick_document(types=['com.apple.numbers.numbers'])
Or even to only one file?
This restricts to .numbers files:
fil = dialogs.pick_document(types=['com.apple.iwork.numbers.numbers'])