Update slk archive authored by Hadieh Monajemi's avatar Hadieh Monajemi
...@@ -73,13 +73,49 @@ slk archive empty-folder /hsm/testing/archive-HM ...@@ -73,13 +73,49 @@ slk archive empty-folder /hsm/testing/archive-HM
## archive 05: archiving two nested empty folders ## archive 05: archiving two nested empty folders
``` ```
slk archive -R not-empty-folder/empty-sub-folder /hsm/testing/archive-HM slk archive -R not-empty-folder/sub-empty-folder /hsm/testing/archive-HM
``` ```
* stdout: empty * stdout: empty
* stderr: ERROR: not-empty-folder/empty-sub-folder cannot be archived. The specified resource does not exist * stderr: ERROR: The local directory chosen contains no files: not-empty-folder/sub-empty-folder.
* exit code: 1 * exit code: 1
Nothing is archived
```shell
slk archive -R not-empty-folder/sub-empty-folder /hsm/testing/archive-HM
```
* stdout: empty
* stderr: ERROR: The local directory chosen contains no files: not-empty-folder/sub-empty-folder.
* exit code: 1
Nothing is archived
```shell
slk archive not-empty-folder /hsm/testing/archive-HM
```
* stdout: [- ] 0% complete.
* stderr: empty
* exit code: 0
Only `not-empty-folder` is archived without the `sub-empty-folder`
```shell
slk archive -R not-empty-folder /hsm/testing/archive-HM
[- ] 0% complete.
```
* stdout: [- ] 0% complete.
* stderr: empty
* exit code: 0
Both the `not-empty-folder` and `sub-empty-folder` are archived.
## archive 06: archiving nested folders ## archive 06: archiving nested folders
``` ```
...@@ -111,3 +147,5 @@ slk archive -R folder-00/sub-folder-01/sub-folder-02 /hsm/testing/archive-HM ...@@ -111,3 +147,5 @@ slk archive -R folder-00/sub-folder-01/sub-folder-02 /hsm/testing/archive-HM
* exit code: 0 * exit code: 0
The `empty-sub-folder-03` is not archived without returning any error message. The `empty-sub-folder-03` is not archived without returning any error message.