because it's like this

ensureCreateFolder : create the folder structure if necessary
ensureCreateFile : create the file if necessary

I really don't see any gain from changing existing behavior and introducing potential problems.
If I ask for file to be created, I don't expect that the system will suddenly start creating folders, that's a unintentional side effect.
If you need it for your convenience, then it's dead-easy to implement without breaking existing stuff.


On Thu, Apr 21, 2016 at 10:35 AM, Denis Kudriashov <dionisiydk@gmail.com> wrote:

2016-04-21 9:55 GMT+02:00 Valentin Ryckewaert <valentin.ryckewaert@gmail.com>:
Yes but why ensureCreateFile then ?
Why don't we juste create a message createFile as there is createFolder ?
createFolder : create the folder
createFile : create the file

ensureCreateFolder : create the folder and its parents if necessary
ensureCreateFile : create the file and its parents if necessary

+1