diff --git a/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php b/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php index daea24b49cc..8f4e3143c14 100644 --- a/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php +++ b/kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php @@ -1023,6 +1023,28 @@ public function fileDelete( $path, $fnamePart = false ) } } + /** + * @param string $path + * @return bool|eZMySQLBackendError + */ + public function filePurge( $path ) + { + $path = self::cleanPath( $path ); + $return = self::$dbbackend->_purge( $path ); + + // Remove local copies + if ( is_file( $path ) ) + { + @unlink( $path ); + } + elseif ( is_dir( $path ) ) + { + eZDir::recursiveDelete( $path ); + } + + return $return; + } + /** * Deletes specified file/directory. *