function n1ed_create_or_move_flmngr_dirs in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2
Create directories for file storage.
2 calls to n1ed_create_or_move_flmngr_dirs()
- n1ed_install in ./
n1ed.install - Called when installed: attaches N1ED to appropriate formats.
- n1ed_update_8221 in ./
n1ed.install - Moves temporary and cache directories to more appropriate place.
File
- ./
n1ed.install, line 138 - Installation hooks for N1ED module.
Code
function n1ed_create_or_move_flmngr_dirs() {
$fileSystem = \Drupal::service("file_system");
$dirFiles = $fileSystem
->realpath('public://flmngr');
mkdir($dirFiles, 0777, TRUE);
$dirTmp = $fileSystem
->realpath('public://flmngr-tmp');
mkdir($dirTmp, 0777, TRUE);
$dirCache = $fileSystem
->realpath('public://flmngr-cache');
mkdir($dirCache, 0777, TRUE);
}