You are here

function is_s3_dir in Filebrowser 7.3

Same name and namespace in other branches
  1. 7.4 filebrowser.module \is_s3_dir()

Check if a given path is an amazon directory

Parameters

$dir Directory to check.:

Return value

bool TRUE if it is an amazon directory, FALSE if not.

1 call to is_s3_dir()
is_s3_filesystem in ./filebrowser.module
Check if a file is on a S3 filesystem

File

./filebrowser.module, line 1403

Code

function is_s3_dir(&$dir) {
  $dir_prefix = substr($dir, 0, 5);
  if ($dir_prefix == 's3://') {
    return true;
  }
  else {
    return false;
  }
}