Check that a file can be created at a certain path.
file that may or may not be created
if TRUE, if
filenamealready exists, it will be deleted by this function
Nothing. Will stop if a file cannot be created at a certain path.