Rewrite empty file creation