You are here

function s3_create_updir in Filebrowser 7.4

Same name and namespace in other branches
  1. 7.3 modules/s3_fb.module \s3_create_updir()

@function Creates a . file (parent folder) since this is not available in a s3 system.

Parameters

$nid:

$fs_root:

Return value

array

1 call to s3_create_updir()
_filebrowser_load_files in ./filebrowser.common.inc

File

modules/s3_fb.module, line 70

Code

function s3_create_updir(&$file_array, $nid, $fs_root) {
  $file_array['nid'] = $nid;
  $file_array['display-name'] = '.';
  $file_array['full-path'] = $fs_root;
  $file_array['status'] = MARK_READ;
  $file_array['kind'] = 1;
  $file_array['mime-type'] = 'folder';
}