FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
cp2foss Import a file (or director or url) into FOSSology for processing. \exit 0 for success, 1 for failure. More...
Go to the source code of this file.
Functions | |
GetBucketFolder ($UploadName, $BucketGroupSize) | |
Given an upload name and the number of letters per bucket, return the bucket folder name. | |
GetFolder ($FolderPath, $Parent=null) | |
Given a folder path, return the folder_pk. More... | |
UploadOne ($FolderPath, $UploadArchive, $UploadName, $UploadDescription, $TarSource=null) | |
Given one object (file or URL), upload it. More... | |
Variables | |
global | $Plugins |
$Usage | |
global | $PG_CONN |
$Verbose = 0 | |
$Test = 0 | |
$fossjobs_command = "" | |
$FolderPath = "/" | |
$UploadDescription = "" | |
$UploadName = "" | |
$QueueList = "" | |
$TarExcludeList = "" | |
$bucket_size = 3 | |
$global_flag = 0 | |
$public_flag = 0 | |
$scmarg = NULL | |
$OptionS = "" | |
$user = $passwd = "" | |
$group = "" | |
$vcsuser = $vcspass= "" | |
if(! $Test && $OptionQ) if($stdin_flag) if($Verbose) | else |
if(! $UploadArchive) | $UploadArchiveTmp = "" |
if(strlen($UploadArchive) > 0 &&empty($UploadName)) if($vcsuser && $vcspass) print Loading | n |
print Calling UploadOne | in |
$res = UploadOne($FolderPath, $UploadArchive, $UploadName, $UploadDescription) | |
cp2foss Import a file (or director or url) into FOSSology for processing. \exit 0 for success, 1 for failure.
Definition in file cp2foss.php.
GetFolder | ( | $FolderPath, | |
$Parent = null |
|||
) |
Given a folder path, return the folder_pk.
$FolderPath | - path from -f |
$Parent | - parent folder of $FolderPath |
Definition at line 151 of file cp2foss.php.
UploadOne | ( | $FolderPath, | |
$UploadArchive, | |||
$UploadName, | |||
$UploadDescription, | |||
$TarSource = null |
|||
) |
Given one object (file or URL), upload it.
$FolderPath | - folder path |
$UploadArchive | - upload file(absolute path) or url |
$UploadName | - uploaded file/dir name |
$UploadDescription | - upload description |
list all available processing agents
Definition at line 210 of file cp2foss.php.
$UploadArchiveTmp = "" |
get real path, and file name
Definition at line 564 of file cp2foss.php.
if (! $UploadArchiveTmp) else |
list all available processing agents get archive from stdin compose fossjobs command
Definition at line 552 of file cp2foss.php.