diff --git a/README.md b/README.md index 02bb36f..3c11b87 100644 --- a/README.md +++ b/README.md @@ -400,7 +400,7 @@ await connection.uploadFile(input, '/u/username/hosts'); ##### Parameter * filePath - _string_ - USS file path name. -* transferMode - _TransferMode_ - `TransferMode.ASCII`, `TransferMode.BINARY` and `TransferMode.ASCII_NO_TRAILING_BLANKS`. The `TransferMode.ASCII` and `TransferMode.ASCII_NO_TRAILING_BLANKS` asks z/OS FTP service to convert `EBCDIC` characters to `ASCII`. The `TransferMode.ASCII_NO_TRAILING_BLANKS` asks z/OS FTP service to remove trailing blanks. +* transferMode - _TransferMode_ - `TransferMode.ASCII`, or `TransferMode.BINARY`. The `TransferMode.ASCII` asks z/OS FTP service to convert `EBCDIC` characters to `ASCII`. * stream - _boolean_ - `true` if you want to obtain a [ReadableStream](https://nodejs.org/api/stream.html#stream_readable_streams) of the file content, or `false` to read a full file into memory (in Buffer). The buffer accepts up to 4MB data. For large file, use `stream=true` instead. ##### Return diff --git a/package-lock.json b/package-lock.json index 32d81bf..e384920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zos-node-accessor", - "version": "2.0.9", + "version": "2.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "zos-node-accessor", - "version": "2.0.9", + "version": "2.0.10", "license": "EPL-1.0", "dependencies": { "ftp4": "~0.3.13", diff --git a/package.json b/package.json index dfd745a..168f673 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zos-node-accessor", - "version": "2.0.9", + "version": "2.0.10", "description": "Accessing z/OS dataset and interacting with JES in NodeJS way", "main": "./lib/zosAccessor.js", "types": "./lib/zosAccessor.d.ts", diff --git a/src/__test__/downloadFile.test.ts b/src/__test__/downloadFile.test.ts index bff45a8..6e7b0ba 100644 --- a/src/__test__/downloadFile.test.ts +++ b/src/__test__/downloadFile.test.ts @@ -56,13 +56,6 @@ describe('The method of downloadFile()', () => { expect(buffer.toString()).toBe(text); }); - it.only('can get USS file in ASCII_NO_TRAILING_BLANKS mode', async () => { - const text = 'Hello\r\n'; - - const buffer = await accessor.downloadFile(getUSSPath('nodeacc/hello_with_trailingblanks.txt'), TransferMode.ASCII_NO_TRAILING_BLANKS); - expect(buffer.toString()).toBe(text); - }); - // Can get USS file in ASCII mode as STREAM it('can get USS file in ASCII mode as STREAM', async () => { const text = 'Hello\r\n';