1.20.x drupal.inc file_create_htaccess($directory, $private = TRUE, $force_overwrite = FALSE)

Creates a .htaccess file in the given directory.

Deprecated

since 1.0.0

Related topics

File

includes/drupal.inc, line 1715
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function file_create_htaccess($directory, $private = TRUE, $force_overwrite = FALSE) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  file_save_htaccess($directory, $private, $force_overwrite);
}