Size
Size Certified

Get the size of a file in Kestra internal storage.

yaml
type: io.kestra.plugin.core.storage.Size
yaml
    id: get_file_size
    namespace: company.team

    tasks:
      - id: generate_file
        type: io.kestra.plugin.scripts.shell.Commands
        commands:
          - echo "Hello John" > name.txt
        outputFiles:
          - "name.txt"

      - id: get_size
        type: io.kestra.plugin.core.storage.Size
        uri: "{{ outputs.generate_file.outputFiles['name.txt'] }}"

      - id: log
        type: io.kestra.plugin.core.log.Log
        message: "{{ outputs.get_size.size }} bytes"
Properties