Project: titanium
Issue TIMOB-19128: Windows: Ti.Filesystem.File.createDirectory will fail if parent directory does not exist
The following code works fine on iOS and Android but will crash the app on Windows, *without showing anything in the logs*: {code:javascript} var win = Ti.UI.createWindow(); var btn = Ti.UI.createButton({	title: 'Click' }); btn.addEventListener('click', function (e) {	var dir1 = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'dir1');	dir1.createDirectory();	console.info('Working fine');	var dir2 = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'sub', 'dir2');	dir2.createDirectory();	console.info('Will have crashed on Windows'); }); win.add(btn); win.open(); {code}
Story points: 2