@whyzee I'm not able to delete a file. This is the error I get when I try to do this:
Here's my Python script:
#coding: utf-8
import workflow
import os
os.remove(workflow.get_variable('old_file'))
The old_file variable is derived from File Name
.File Extension
. The actual name is correct but the path is what's wrong (I'm pretty sure). Here's the console error I get when I try to run this.
Traceback (most recent call last):
File "/var/mobile/Containers/Data/Application/<ID>/Library/Application Support/Commands/workflow_action_tmp.py", line 5, in <module>
os.remove(workflow.get_variable('old_file'))
OSError: [Errno 2] No such file or directory: 'Untitled.md'
Have you successfully gotten file deleting to work in Editorial? I'm wondering if it's programmatically possible...