Append to file selected with pick_document
I have a little script which takes csv from input and appends its content to a csv file selected with pick_document (csv file belongs to an external source- fe file explorer pro).
I can open the file selected with pick_document but I can't append to it. Is this a ios limitation?
I noticed that the selected file is being read from ......tmp/com.omz-software.Pythonista3.PythonistaAction3-Inbox/transactions_201810.csv
So, that means that the file is a copy of the file from the selected source?
append to: /private/var/mobile/Containers/Data/PluginKitPlugin/5C643C43-8EF4-45EC-B978-04E6EE7503FC/tmp/com.omz-software.Pythonista3.PythonistaAction3-Inbox/transactions_201810.csv
Thanks in advance
I think that pick_document creates a local temporary copy of the external file.
You could append your data to the local copy and then save the appended file into its original location via open_in.
Thanks for the tip. I will try that.
@cvp it worked. Thanks