Update slk archive authored by Hadieh Monajemi's avatar Hadieh Monajemi
...@@ -9,9 +9,14 @@ These files are to be archived in `/hsm/testing/archive-HM`. ...@@ -9,9 +9,14 @@ These files are to be archived in `/hsm/testing/archive-HM`.
$cd ~/archive $cd ~/archive
$ls -R $ls -R
.: .:
empty-folder folder-00 large-file normal-file pictures empty-folder-00 empty-folder-01 folder-00 large-file normal-file pictures
./empty-folder: ./empty-folder-00:
./empty-folder-01:
empty-sub-folder-02
./empty-folder-01/empty-sub-folder-02:
./folder-00: ./folder-00:
file-00 sub-folder-01 file-00 sub-folder-01
...@@ -20,7 +25,10 @@ file-00 sub-folder-01 ...@@ -20,7 +25,10 @@ file-00 sub-folder-01
sub-file-01 sub-folder-02 sub-file-01 sub-folder-02
./folder-00/sub-folder-01/sub-folder-02: ./folder-00/sub-folder-01/sub-folder-02:
sub-file-02 sub-file-02 sub-folder-03
./folder-00/sub-folder-01/sub-folder-02/sub-folder-03:
sub-file-03
./pictures: ./pictures:
Earth.jpeg Jupiter.png Mars.tif Saturn.png Earth.jpeg Jupiter.png Mars.tif Saturn.png
...@@ -29,7 +37,7 @@ Earth.jpeg Jupiter.png Mars.tif Saturn.png ...@@ -29,7 +37,7 @@ Earth.jpeg Jupiter.png Mars.tif Saturn.png
## archive 01: archiving a normal file ## archive 01: archiving a normal file
``` ```
slk archive normal-file /hsm/testing/archive slk archive normal-file /hsm/testing/archive-HM
``` ```
* stdout: empty * stdout: empty
* stderr: empty * stderr: empty
...@@ -38,10 +46,7 @@ slk archive normal-file /hsm/testing/archive ...@@ -38,10 +46,7 @@ slk archive normal-file /hsm/testing/archive
## archive 02: archiving an image file ## archive 02: archiving an image file
``` ```
slk archive test-archive/image-file.jpg /hsm/testing/HMarchive slk archive pictures /hsm/testing/archive-HM
slk archive test-archive/image-file.png /hsm/testing/HMarchive
slk archive test-archive/image-file.tif /hsm/testing/HMarchive
``` ```
* stdout: * stdout:
* stderr: * stderr:
...@@ -50,7 +55,7 @@ slk archive test-archive/image-file.tif /hsm/testing/HMarchive ...@@ -50,7 +55,7 @@ slk archive test-archive/image-file.tif /hsm/testing/HMarchive
## archive 03: archiving a large file ## archive 03: archiving a large file
``` ```
slk archive test-archive/large-file /hsm/testing/HMarchive slk archive large-file /hsm/testing/archive-HM
``` ```
* stdout: * stdout:
* stderr: * stderr:
...@@ -59,7 +64,7 @@ slk archive test-archive/large-file /hsm/testing/HMarchive ...@@ -59,7 +64,7 @@ slk archive test-archive/large-file /hsm/testing/HMarchive
## archive 04: archiving an empty folder ## archive 04: archiving an empty folder
``` ```
slk archive test-archive/empty-folder /hsm/testing/HMarchive slk archive empty-folder-00 /hsm/testing/archive-HM
``` ```
* stdout: * stdout:
...@@ -69,27 +74,27 @@ slk archive test-archive/empty-folder /hsm/testing/HMarchive ...@@ -69,27 +74,27 @@ slk archive test-archive/empty-folder /hsm/testing/HMarchive
## archive 05: archiving two nested empty folders ## archive 05: archiving two nested empty folders
``` ```
slk archive -R test-archive/empty-folder01/empty-folder02 /hsm/testing/HMarchive slk archive -R empty-folder-01/empty-sub-folder02 /hsm/testing/archive-HM
``` ```
* stdout: * stdout:
* stderr: * stderr:
* exit code: * exit code:
## archive 06: archiving two nested folders ## archive 06: archiving nested folders
``` ```
slk archive -R test-archive/empty-folder/sub-folder/normal-file /hsm/testing/HMarchive slk archive -R folder-00 /hsm/testing/archive-HM
``` ```
* stdout: * stdout:
* stderr: * stderr:
* exit code: * exit code:
## archive 07: archiving two nested folders ## archive 07: archiving the last empty folder in a nested folder
``` ```
slk archive -R test-archive/empty-folder/sub-folder/normal-file /hsm/testing/HMarchive slk archive -R folder-00/sub-folder-01/sub-folder-02/sub-folder-03/ /hsm/testing/archive-HM
``` ```
* stdout: * stdout:
... ...
......