You are here

function _pwa_apple_create_folder in Progressive Web App 7.2

2 calls to _pwa_apple_create_folder()
_pwa_apple_create_image_base in includes/pwa.apple.inc
_pwa_apple_get_spalsh_screen_href in includes/pwa.apple.inc

File

includes/pwa.apple.inc, line 49

Code

function _pwa_apple_create_folder($directory = 'public://pwa/apple') {

  // Get the folder for the final location of this style.
  // Build the destination folder tree if it doesn't already exist.
  if (!file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS)) {
    watchdog('image', 'Failed to create style directory: %directory', array(
      '%directory' => $directory,
    ), WATCHDOG_ERROR);
    return FALSE;
  }
  return drupal_realpath($directory);
}