You are here

function filefield_paths_cleanup_temp in File (Field) Paths 6

Same name and namespace in other branches
  1. 5 filefield_paths.module \filefield_paths_cleanup_temp()
2 calls to filefield_paths_cleanup_temp()
filefield_paths_node_update in ./filefield_paths.module
Implements hook_node_update().
imagefield_filefield_paths_cleanup in modules/imagefield.inc
Implements hook_filefield_paths_cleanup().

File

./filefield_paths.module, line 444
Contains core functions for the FileField Paths module.

Code

function filefield_paths_cleanup_temp($paths) {
  while ($paths) {
    if (@rmdir(file_directory_path() . '/' . implode('/', $paths)) === TRUE) {
      array_pop($paths);
      continue;
    }
    break;
  }
}