Function Hook_task_import_ftp_downloads->ftp_recursive_downloads_scan

Definitions

sources/hooks/systems/tasks/import_ftp_downloads.php

  • Worker function to do an FTP import.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$conn_id resource required parameter N/A N/A The FTP connection
$url URLPATH required parameter N/A N/A The URL that is equivalent to the base path on our FTP
$directory PATH required parameter N/A N/A The directory we are scanning
$dest_cat AUTO_LINK required parameter N/A N/A The destination downloading category
$make_subfolders boolean required parameter N/A N/A Whether we add hierarchically (as opposed to a flat category fill)

Return

  • Number of downloads added
  • Type: integer
  • Set: N/A
  • Range: N/A