function file_delete in Coder 6
Same name and namespace in other branches
- 5.2 scripts/coder_format/coder_format.php \file_delete()
- 6.2 scripts/coder_format/coder_format.php \file_delete()
- 7.2 scripts/coder_format/coder_format.php \file_delete()
- 7 scripts/coder_format/coder_format.php \file_delete()
Delete a file.
Parameters
$path A string containing a file path.:
Return value
TRUE for success, FALSE for failure.
1 call to file_delete()
- file_move in scripts/
coder_format/ coder_format.php - Moves a file to a new location.
File
- scripts/
coder_format/ coder_format.php, line 310 - Coder format shell invocation script.
Code
function file_delete($path) {
if (is_file($path)) {
return unlink($path);
}
}