You are here

function is_s3_filesystem in Filebrowser 7.4

Same name and namespace in other branches
  1. 7.3 filebrowser.module \is_s3_filesystem()

Check if a file is on a S3 filesystem

Parameters

$target:

Return value

bool true if it is a S3 filesystem, false otherwise

4 calls to is_s3_filesystem()
filebrowser_form_delete_confirm_submit in ./filebrowser.module
File delete confirmation form submit
filebrowser_page_download in ./filebrowser.pages.inc
Callback for filebrowser_download/%node menu.
filebrowser_validate in ./filebrowser.module
Implements hook_validate(). @inheritdoc
_filebrowser_load_files in ./filebrowser.common.inc

File

./filebrowser.module, line 1456

Code

function is_s3_filesystem($target) {
  if (module_exists('s3_fb')) {
    if (is_s3_dir($target)) {
      return true;
    }
  }
  return false;
}