Warning: session_start(): open(/www/htdocs/w017651d/tmp/wiki//sess_7a3a87062be230f11bcc0e6d7528f6c7, O_RDWR) failed: No such file or directory (2) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php on line 247

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/auth.php on line 424

Warning: session_write_close(): open(/www/htdocs/w017651d/tmp/wiki//sess_7a3a87062be230f11bcc0e6d7528f6c7, O_RDWR) failed: No such file or directory (2) in /www/htdocs/w017651d/wiki.blackcat-cms.org/doku.php on line 121

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/www/htdocs/w017651d/tmp/wiki/) in /www/htdocs/w017651d/wiki.blackcat-cms.org/doku.php on line 121

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/actions.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/lib/tpl/dokuwiki/main.php on line 12
Verzeichnisse anlegen und löschen [BlackCat CMS Dokumentation, Tutorials, Tipps und Tricks]

Benutzer-Werkzeuge

Webseiten-Werkzeuge


core:helper:directory:create

Verzeichnisse anlegen und löschen

Verzeichnis mit Standardrechten anlegen

Synopsis

CAT_Helper_Directory::createDirectory( <Verzeichnis> );

Beispiel:
Unterhalb von temp ein Unterverzeichnis test anlegen

CAT_Helper_Directory::createDirectory( CAT_PATH.'/temp/test' );

Verzeichnis anlegen und automatisch index.php erzeugen

Synopsis

CAT_Helper_Directory::createDirectory( <Verzeichnis>, NULL, true);

Beispiel:
Unterhalb von temp ein Unterverzeichnis test anlegen und dort automatisch eine index.php erzeugen

CAT_Helper_Directory::createDirectory( CAT_PATH.'/temp/test', NULL, true );

Verzeichnis (rekursiv) löschen

Synopsis

CAT_Helper_Directory::removeDirectory( <Verzeichnis> )

Beispiel Das Unterverzeichnis test aus temp mit allen Inhalten löschen.

CAT_Helper_Directory::removeDirectory( CAT_PATH.'/temp/test' );

core/helper/directory/create.txt · Zuletzt geändert: 2014/04/11 00:00 (Externe Bearbeitung)