You are here

function file_delete in Coder 6.2

Same name and namespace in other branches
  1. 5.2 scripts/coder_format/coder_format.php \file_delete()
  2. 6 scripts/coder_format/coder_format.php \file_delete()
  3. 7.2 scripts/coder_format/coder_format.php \file_delete()
  4. 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);
  }
}