Bugfix: make sure you can write the DIR for the full file