Closed pranjalvachaspati-toast closed 1 year ago
This fixes Issue #340.
@tschuchortdev please let me know if this PR needs anything!
Hi @tschuchortdev, I need this feature. Can you review this PR?
Thanks for this PR! I'm sorry I didn't get to it sooner. Your work is appreciated and will be in the next release, which I'm about to start.
Currently,
createNewFile()
fails if you have aSourceFile
in a directory, since it can't create the owning directory.Calling
mkdirs()
on the parent directory fixes this, and has no effect if the path already exists.