[java/cs] Always create path/to/file directories