Couchdrop Developer Docs
Couchdrop HomepageKnowledge BaseLogin
  • Couchdrop API Overview
  • Available Endpoints
  • Errors and Response Codes
  • Domains and Accounts
    • Register a new domain
    • Manage domain/account
    • Authentication
  • Administration
    • Users
    • Groups
    • Folder Permissions
    • Folder Properties
    • Shared Links
    • Storage Connections
      • SFTP Connections
      • S3 Connections
      • FTP Connections
      • Azure Connections
      • GCS Connections
      • Other
    • Automations
      • Scheduled Automations
        • Create/Update
        • Get all schedule workflows
        • Get schedule workflow
        • Trigger schedule workflow
        • Delete Scheduled Workflow
      • Event Automations
        • Create/Update
        • Get action workflow
        • Get all action workflows
        • Delete Action Workflow
      • Actions
        • Webhook
        • Rename
        • Copy
        • Move
        • PGP Encrypt
        • Paths
      • Conditions
    • Symlinks/Shortcuts
    • Auditing and Reporting
  • Webhooks
    • Using webhooks
  • Filesystem Operations
    • Listing files/folders
    • Downloading a file
    • Uploading a File
    • Rename files/folders
    • Deleting files/folders
    • Create a folder
Powered by GitBook

Couchdrop

  • Couchdrop Homepage
  • Register
  • Login

Platform

  • Cloud SFTP Server
  • Cloud FTP Server
  • Automated Transfers
  • Mailboxes and Inboxes

Copyright Couchdrop Limited 2025

On this page

Was this helpful?

  1. Administration
  2. Automations
  3. Actions

Paths

Certain operations work on paths. Couchdrop has a bunch of path variables available that can be used to craft relevant paths.

When working with paths, we need to determine whether the path provided is a folder or absolute filename.

If the path provided ends with a "/", then we will assume that the path is a directory and include it and the original filename,

For example:

Source File
Configured Path
Result

/directory/filename.txt

/newdir/

/newdir/filename.txt

/directory/filename.txt

filename2.txt

/directory/filename2.txt

You can use dynamic variables in the path to compose a useful destination filename. Available variables are:

Variable
Example Result
Desc

{EXISTING_NAME}

filename.txt

Take the filename

{TIMESTAMP}

160331234

A unix timestamp

{YYYY}

2050

The current year

{YY}

50

The current year in shorthand

{MM}

03

The month

{DD}

10

The day of the month

{USER}

donald

The user on the event

{EVENT.*}

{EVENT.username} - donald

Any attribute on the event

An example of a dynamic path used in a copy operation:

{
    "type":"copy",
    "copy_to":"/processed_files/{USER}/{YY}/{MM}/{DD}/{EXISTING_FILENAME}"
}
PreviousPGP EncryptNextConditions

Last updated 2 years ago

Was this helpful?