make a file called file
and ensure it does NOT exist in manta
$ echo data > file
$ mrm ~~/stor/file
mrm: ResourceNotFoundError: /bahamas10/stor/file was not found
try to put the file with if-none-match
$ mput -H 'if-none-match: *' -f file ~~/stor/file
mput: Cannot write because HTTP precondition not met.
$ mput -f file ~~/stor/file
/bahamas10/stor/file [=============================================================================================================>] 100% 5B
$ mput -H 'if-none-match: *' -f file ~~/stor/file
mput: Cannot write because HTTP precondition not met.
try to put the file with if-match
$ mrm ~~/stor/file
$ mput -H 'if-match: *' -f file ~~/stor/file
/bahamas10/stor/file [=============================================================================================================>] 100% 5B
$ mput -H 'if-match: *' -f file ~~/stor/file
/bahamas10/stor/file [=============================================================================================================>] 100% 5B