#withDirectory usage in nodejs SDK?

1 messages · Page 1 of 1 (latest)

fervent forge
#

I'm having trouble using withDirectory with the nodejs SDK. tried:

.withDirectory("/app", '.') // Copy the current directory to /app

or

.withDirectory("/tests", new Directory().directory('.')) // Copy the current directory to /tests

but getting for string version:

        {
          message: 'failed to decode *core.Directory bytes: .: illegal base64 data at input byte 0',
          locations: [ [Object] ],
          path: [ 'pipeline', 'container', 'from', 'withDirectory' ]
        }

and for non-string version:

GraphQLRequestError: Unknown argument "path" on field "directory" of type "Query".

Is there sample code of how to copy a directory with the SDK?

fervent forge