FOSSology  4.4.0
Open Source License Compliance by Open Source Software
fo_bucket_list.php File Reference

get a list of filepaths and bucket information for those files. More...

Go to the source code of this file.

Functions

 GetBucketList ($bucket_pk, $bucket_agent, $nomos_agent, $uploadtree_pk, $upload_pk=0)
 get bucket list of one specified upload or all uploads More...
 
 Usage4Options ($UploadID, $item)
 

Variables

 $Usage
 
 $upload = $item = $bucket = $bucket_agent = $nomos_agent = ""
 
 $excluding = ''
 
 $longopts = array("user:", "password:")
 
 $options = getopt("c:u:t:b:a:n:hX:", $longopts)
 
if(empty($options)||! is_array($options)) $user = $passwd = ""
 
foreach($options as $option=> $value) if(!(is_numeric($item)) &&!(is_numeric($upload))) $upload_from_item = $uploadtree1stid = ""
 
 $return_value = read_permission($upload, $user)
 
 if (empty( $return_value))
 
 return
 

Detailed Description

get a list of filepaths and bucket information for those files.

Definition in file fo_bucket_list.php.

Function Documentation

◆ GetBucketList()

GetBucketList (   $bucket_pk,
  $bucket_agent,
  $nomos_agent,
  $uploadtree_pk,
  $upload_pk = 0 
)

get bucket list of one specified upload or all uploads

\pamam $upload_pk - upload id

Parameters
$bucket_pk- bucket id
$bucket_agent- bucket agent ID
$nomos_agent- nomos agent ID \prram $uploadtree_pk - uploadtree ID

get bucket name

Definition at line 150 of file fo_bucket_list.php.

Variable Documentation

◆ $upload_from_item

foreach ( $options as $option=> $value) if (!(is_numeric( $item)) &&!(is_numeric( $upload))) $upload_from_item = $uploadtree1stid = ""

check upload Id and uploadtree ID

Definition at line 88 of file fo_bucket_list.php.

◆ $Usage

Initial value:
= "Usage: " . basename($argv[0]) . "
-u upload id :: upload id
-t uploadtree id :: uploadtree id
-c sysconfdir :: optional - Specify the directory for the system configuration
--user username :: user name
--password password :: password
-b bucket id :: bucket id
-a bucket agent id :: bucket agent id
-n nomos agent id :: nomos agent id
-X excluding :: Exclude files containing [free text] in the path.
'mac/' should exclude all files in the mac directory.
'mac' and it should exclude all files in any directory containing the substring 'mac'
'/mac' and it should exclude all files in any directory that starts with 'mac'
-h help, this message
"

Definition at line 16 of file fo_bucket_list.php.