BBC.FILEOPS.SCRI.LIST-FILES

Summary

Description

This script can be used in EXEC variables to retrieve a list of files on Linux and Windows systems

Input

Output

&BBCF_FILES_O#
process handle for the list of files

Details

Object type
SCRI
Object Subtype
-
Object Folder
PACKAGES/BEST-BLU/BBC.FILEOPS/SOURCE/LIST-FILES
Active
true
Title
Lists files of a directory (used in Backend Variables)
Archive Key 1
-
Archive Key 2
-
Created
WRITER/B4A am: 2022-03-24 08:01:07
Last Modified
WRITER/B4A am: 2022-07-11 14:01:27 19 x
Last Used
-

Custom Attributes

No custom attributes defined.

Process

:put_prompt_buffer BBCF_AGENT_OR_GROUP_I# = "&BBCF_AGENT_OR_GROUP_I#"
:put_prompt_buffer BBCF_DIRECTORY_I# = "&BBCF_DIRECTORY_I#"
:put_prompt_buffer BBCF_LOGIN_I# = "&BBCF_LOGIN_I#"
:put_prompt_buffer BBCF_PATTERN_I# = "&BBCF_PATTERN_I#"

:set &retv# = activate_uc_object( "BBC.FILEOPS.JOBP@IF.LIST-FILES", WAIT )
:set &data_runid# = get_published_value( &retv#, BBCF_LIST_FILES_RUNID_O# )
:p "runID: &data_runid#"
:set &rep# = prep_process_report( , &DATA_RUNID#, REP )
:set &hnd# = create_process( NEW )
:set &ret# = put_process_line( &hnd#, "File", ";" )
:process &rep#
:  set &line# = get_process_line( &rep#, 1 )
:  set &comment# = str_starts_with( &line#, "**" )
:  if &line# = ""
:    set &comment# = 'Y'
:  endif
:  if &comment# <> 'Y'
:    p "line: &line#"
:    set &ret# = put_process_line( &hnd#, "&line#", ";" )
:    p "ret: &ret#"
:  endif
:endprocess

:set &BBCF_FILES_O# = save_process( &hnd# )

:publish &BBCF_FILES_O#, , TOP

:close_process &hnd#
:close_process &rep#

Object Activations

Zeilennummer Scriptzeile
7 :set &retv# = activate_uc_object( "BBC.FILEOPS.JOBP@IF.LIST-FILES", WAIT )

Runtime

ERT Method
DYNAMIC_AVERAGE
Current ERT
00 : 01 : 01 No. of past runs
0 +ERT Correction %
0

Sync

No sync definitions.

Variables

No variables defined.

Prompt Sets

BBC.FILEOPS.PRPT.LIST-FILES

Variable Default Value
BBCF_AGENT_OR_GROUP_I#
BBCF_DIRECTORY_I#
BBCF_LINE_PREFIX_I#
BBCF_LOGIN_I#
BBCF_PATTERN_I# *

Automatic Deactivation

Deactivate on Finish
ALWAYS
Deactivate After
0

Runtime Parameters

AE Priority
0
Timezone
-
Generate at runtime
true
Max. Parallel Tasks
0

Variable Publications

Found 1 potentially dangerous variable publications (TOP)

Zeilennummer Scriptzeile
28 :publish &BBCF_FILES_O#, , TOP