.
*
* ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗
* ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝
* ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝
* ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗
* ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗
* ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
*/
class Ai1wm_File_Htaccess {
/**
* Create .htaccess file
*
* The method will create .htaccess file with contents 'AddType application/octet-stream .wpress'
*
* @param string $path Path to the .htaccess file
* @return boolean|null
*/
public static function create( $path ) {
$contents = "\n" .
"AddType application/octet-stream .wpress\n" .
"\n" .
"\n" .
"DirectoryIndex index.php\n" .
"\n" .
"Options -Indexes\n";
return Ai1wm_File::create( $path, $contents );
}
}