Update slk archive authored by Hadieh Monajemi's avatar Hadieh Monajemi
...@@ -9,9 +9,9 @@ These files are to be archived in `/hsm/testing/archive-HM`. ...@@ -9,9 +9,9 @@ These files are to be archived in `/hsm/testing/archive-HM`.
$cd ~/archive $cd ~/archive
$ls -R $ls -R
.: .:
empty-folder-00 folder-00 large-file normal-file pictures empty-folder folder-00 large-file normal-file not-empty-folder pictures
./empty-folder-00: ./empty-folder:
./folder-00: ./folder-00:
file-00 sub-folder-01 file-00 sub-folder-01
...@@ -24,6 +24,11 @@ empty-sub-folder-03 file-02 ...@@ -24,6 +24,11 @@ empty-sub-folder-03 file-02
./folder-00/sub-folder-01/sub-folder-02/empty-sub-folder-03: ./folder-00/sub-folder-01/sub-folder-02/empty-sub-folder-03:
./not-empty-folder:
sub-empty-folder
./not-empty-folder/sub-empty-folder:
./pictures: ./pictures:
Earth.jpeg Jupiter.png Mars.tif Saturn.png Earth.jpeg Jupiter.png Mars.tif Saturn.png
...@@ -58,21 +63,21 @@ slk archive large-file /hsm/testing/archive-HM ...@@ -58,21 +63,21 @@ slk archive large-file /hsm/testing/archive-HM
## archive 04: archiving an empty folder ## archive 04: archiving an empty folder
``` ```
slk archive empty-folder-00 /hsm/testing/archive-HM slk archive empty-folder /hsm/testing/archive-HM
``` ```
* stdout: empty * stdout: empty
* stderr: empty * stderr: ERROR: The local directory chosen contains no files: empty-folder.
* exit code: 0 * exit code: 1
## archive 05: archiving two nested empty folders ## archive 05: archiving two nested empty folders
``` ```
slk archive -R empty-folder-01/empty-sub-folder02 /hsm/testing/archive-HM slk archive -R not-empty-folder/empty-sub-folder /hsm/testing/archive-HM
``` ```
* stdout: empty * stdout: empty
* stderr: ERROR: The local directory chosen contains no files: empty-folder-00. * stderr: ERROR: not-empty-folder/empty-sub-folder cannot be archived. The specified resource does not exist
* exit code: 1 * exit code: 1
## archive 06: archiving nested folders ## archive 06: archiving nested folders
... ...
......