drupal_rmdir

function drupal_rmdir

drupal_rmdir($uri, $context = NULL)

Removes a directory.

PHP's rmdir() is broken on Windows, as it can fail to remove a directory when it has a read-only flag set.

Parameters

$uri: A URI or pathname.

$context: Refer to http://php.net/manual/ref.stream.php

Return value

Boolean TRUE on success, or FALSE on failure.

See also

登录查看完整内容