HomeWiki
HomeWiki
  1. Blob
  • Back to home
  • 2. Connectivity
  • Introduction
  • Custom Script
  • Playground
  • Database Explorer
  • Log Stream
  • Direct Communication
  • Softone
    • Getting Started
  • Datapump
    • Getting Started
    • Crons
    • Legacy Windows Support
    • SDK
      • DB
        • _executeQuery
        • _executeStoreProcedure
        • _executeInsertQuery
        • _executeInsertQueriesInTransaction
      • Import
        • _productsImport
        • _categoriesImport
        • _brandsImport
        • _attributesImport
        • _attributeSetsImport
        • _unitsImport
        • _quantityImport
        • _customersImport
        • _contactsImport
        • _callsImport
        • _eventsImport
        • _tasksImport
        • _ordersImport
        • _usersImport
        • _customerSourceTagsImport
        • _productSourceTagsImport
      • Log
        • _logDebug
        • _logInfo
        • _logWarn
        • _logError
      • Web Requests
        • _httpGetJson
        • _httpPostJson
        • _httpPutJson
        • _httpDeleteJson
        • _httpPatchJson
      • Variables
        • _saveVariable
        • _getVariable
        • _deleteVariable
      • Blob
        • _blobConnect
        • _blobExists
        • _blobGet
        • _blobFind
      • Utils
        • _encodeBase64
        • _sleep
        • _getLastSyncDate
        • _updateLastSyncDate
        • _resetLastSyncDate
  1. Blob

_blobExists

Documentation: _blobExists Function#

The _blobExists function is used to check the existence of a specific blob (file) in an Azure Blob Storage container. Before calling this function, you must establish a connection to the Azure Blob Storage using the _blobConnect function.

Function Signature:#

Parameters:#

blobName:
Description: The name of the blob (file) to check for existence within the Azure Blob Storage container.
Type: string
Example:

Return Value:#

Returns:
A boolean value indicating whether the specified blob exists in the connected container.
Type: boolean
Values:
true: The blob exists in the container.
false: The blob does not exist in the container.
Example:

Function Workflow:#

1.
Ensure Connection:
Verify that _blobConnect has been called successfully to establish a connection to the Azure Blob Storage and specify the container. This function depends on an active connection to function correctly.
2.
Check Blob Existence:
Use the Azure Blob Storage client to check if the blob with the provided blobName exists in the connected container.
3.
Return Result:
Return true if the blob exists, otherwise return false.

Example Usage:#

Important Considerations:#

Connection Requirement:
Ensure that _blobConnect has been successfully called before using _blobExists. The function relies on an established connection to perform the check.
Blob Naming:
The blobName parameter must accurately reflect the name of the blob in the container. Verify that the naming is correct and follows Azure Blob Storage conventions.
By using _blobExists, you can determine the presence of a blob in the Azure Blob Storage container, allowing you to manage or verify the existence of files as needed.
Previous
_blobConnect
Next
_blobGet
Built with