The Remove Directory Component allows users to delete a directory from an FTP or SFTP server. It ensures efficient directory management within automated workflows.
This component connects to an FTP/SFTP server and removes the specified directory.
path
string
The directory path to be removed.
in
Accepts the directory path for removal.
out
Emits success confirmation when the directory is removed.
notFound
Emits an error if the directory does not exist or permission is denied.
Establishes FTP/SFTP Connection: Securely connects to the remote server using provided authentication credentials.
Attempts to Remove Directory:
Tries to delete the directory at the specified path
.
Ensures proper handling of directory permissions.
Handles Success & Errors:
If successful, sends confirmation to the out
port.
If the directory does not exist or permission is denied, emits an error to notFound
.
Closes Connection: Ensures the FTP/SFTP session is properly terminated.
path
string
The directory path that was processed.
errorCode
(if error)
string
FTP/SFTP error code.
errorMessage
(if error)
string
Description of the error encountered.
Supports FTP & SFTP: Works with both FTP and secure FTP (SFTP) connections.
Error Handling: Properly manages missing directories and permission-related issues.
Efficient Directory Management: Enables automated cleanup of remote directories.
This component is essential for workflows that require automated directory management and cleanup on remote servers.