Can't install new file if file is empty
thelfensdrfer opened this issue · comments
I guess touch should be changed to file_put_contents. Every OS saves the modification time for a file. And it's not for creating a file. What do you think?
touch
is used (and should be os independent), so fwrite
could be used whether the file existed or not. And according to the file_put_content docs, it's just a wrapper for fwrite
.