Skip to content

Icimsfoldercopy

flowtask.components.IcimsFolderCopy

IcimsFolderCopy

IcimsFolderCopy(loop=None, job=None, stat=None, **kwargs)

Bases: FlowComponent

IcimsFolderCopy.

Copies folders from one directory to another based on data retrieved from a PostgreSQL database. Supports three modes: copying all folders, copying based on the associate's name, or copying based on the associate's ID.

Properties: +-------------------+-------------+-------------------------------------------------+ | Name | Required | Summary | +-------------------+-------------+-------------------------------------------------+ | driver | Yes | pg (default asyncdb PostgreSQL driver) | | source_directory | Yes | Directory where folders are located | | destination_dir | Yes | Directory where folders will be copied to | | by_name | No | Person's name to filter by | | by_associate_id | No | Associate ID to filter by | +-------------------+-------------+-------------------------------------------------+

close async

close(connection=None)

Close the database connection.

copy_folders

copy_folders(folder_codes)

Copy folders and handle missing folders gracefully.

run async

run()

Execute the folder copying process based on database results using Pandas.

start async

start(**kwargs)

Prepare component for execution.