Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/1580#issuecomment-50184666
But the point above was that the code that creates this object goes through
DiskBlockManager.getFile, which already creates any non-existent directories.
So I don't think this will be a problem, unless a directory is deleted exactly
in the instant when we return a File and we start writing.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---