checks if file/dir. if file exists; does nothing