From a2069ee48b4584b5dcec4b8438bf1ee44a3dc405 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Mon, 22 Feb 2021 16:11:56 +0300 Subject: [PATCH 1/3] fixed grammar --- src/SASViyaApiClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 0a78aa1..121f05b 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -1202,7 +1202,7 @@ export class SASViyaApiClient { } /** - * Lists a children folders for given Viya folder. + * Lists children folders for given Viya folder. * @param sourceFolder - the full path (eg `/Public/example/myFolder`) or URI of the source folder listed. Providing URI instead of path will save one extra request. * @param accessToken - an access token for authorizing the request. */ @@ -1237,7 +1237,7 @@ export class SASViyaApiClient { } /** - * Moves a Viya folder to a new location. The folder may be renamed at the same time. + * Moves Viya folder to a new location. The folder may be renamed at the same time. * @param sourceFolder - the full path (eg `/Public/example/myFolder`) or URI of the source folder to be moved. Providing URI instead of path will save one extra request. * @param targetParentFolder - the full path or URI of the _parent_ folder to which the `sourceFolder` will be moved (eg `/Public/newDestination`). To move a folder, a user has to have write permissions in targetParentFolder. Providing URI instead of path will save one extra request. * @param targetFolderName - the name of the "moved" folder. If left blank, the original folder name will be used (eg `myFolder` in `/Public/newDestination/myFolder` for the example above). Optional field. @@ -1264,7 +1264,7 @@ export class SASViyaApiClient { targetFolderName = sourceFolderName } - // checks if 'sourceFolder' is already a URI + // checks if 'sourceFolder' is already an URI const sourceFolderUri = await this.getFolderUri(sourceFolder, accessToken) // checks if 'targetParentFolder' is already a URI From be0fe000763177b2a2b11b691fddb3c9dde4f448 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Mon, 22 Feb 2021 16:12:56 +0300 Subject: [PATCH 2/3] fixed grammar --- src/SASjs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SASjs.ts b/src/SASjs.ts index 72c1d86..ae0b824 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -318,7 +318,7 @@ export default class SASjs { } /** - * Lists a children folders for given Viya folder. + * Lists children folders for given Viya folder. * @param sourceFolder - the full path (eg `/Public/example/myFolder`) or URI of the source folder listed. Providing URI instead of path will save one extra request. * @param accessToken - an access token for authorizing the request. */ From 9344c4fd355d62b3ebeb5ae8a80da5de0f420006 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Mon, 22 Feb 2021 16:16:18 +0300 Subject: [PATCH 3/3] fixed grammar --- src/SASViyaApiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 121f05b..3b1923f 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -1249,7 +1249,7 @@ export class SASViyaApiClient { targetFolderName: string, accessToken: string ) { - // If target path is existing folder, than keep source folder name, othervise rename it with given target folder name + // If target path is an existing folder, than keep source folder name, othervise rename it with given target folder name const sourceFolderName = sourceFolder.split('/').pop() as string const targetFolderDetails = await this.getFolderDetails( targetParentFolder,