Community
Participate
Working Groups
As pascal and I discussed, if the argument to Location.setURL does not exist, then the function fails because it cannot create the .lock file. Its understandable that you might require the instance data folder to exist, since we're passing the value as an URL. However, even in that case, the operation still fails if the .metadata folder does not exist -- I don't think we can create the .metadata folder, so perhaps both folders could be created by the runtime.
I released a fix in HEAD. I chose to split the responsibility. You create the 'root' folder, and we will create the .metadata folder. I believe this makes more sense because in case where people give a URL we can not guarantee that we will be able to create the folder, therefore why in some case should we create the folder and not in some others.