[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [orion-dev] Another question about Server API / File API
|
For copy with no-overwrite we will "try" to copy every file and folder only skipping files that already exist.
e.g.
1) If a folder already exists that's fine and any sub-file and folder copy operations will continue.
2) If a file already exists we will skip it.
-Simon
"Kozyura, Vitaly" ---08/12/2013 03:36:57 AM---Hi Mark, Thank you for the explanation.
|
"Kozyura, Vitaly" <v.kozyura@xxxxxxx> |
|
Orion developer discussions <orion-dev@xxxxxxxxxxx>, |
|
08/12/2013 03:36 AM |
|
Re: [orion-dev] Another question about Server API / File API |
|
orion-dev-bounces@xxxxxxxxxxx |
Hi Mark,
Thank you for the explanation.
What should happen if by “copy directory, no-overwrite” one file inside of the destination directory already exists?
Should the whole command be canceled?
What if only the empty destination directory exists?
Regards,
Vitaly
From: orion-dev-bounces@xxxxxxxxxxx [mailto:orion-dev-bounces@xxxxxxxxxxx] On Behalf Of Mark Macdonald
Sent: Freitag, 9. August 2013 18:13
To: Orion developer discussions
Subject: Re: [orion-dev] Another question about Server API / File API
Hi Vitaly,
Here are, taken from the Orion source code, the current values that can go into X-Create-Options. (This is not an exhaustive list: more options may be added in future, and implementations are required to ignore unrecognized options.)
Valid combinations are produced by taking one of either "copy" or "move", and optionally adding "no-overwrite". Hence the valid combinations are:
- copy
- move
- copy,
no-overwrite
(order doesn't matter)
- move,no-overwrite (order doesn't matter)
Thanks for pointing out that these details were missing from the Server API docs. I have added them to the wiki.
Mark
On Wed, Aug 7, 2013 at 11:21 AM, Kozyura, Vitaly <v.kozyura@xxxxxxx> wrote:
Hi all,
I have another question about Orion File API.
What are the possible values for X-Create-Options ?
And what are the allowed combinations of this values ?
Is there some detailed documentation about it ?
Thanks in advance,
Vitaly
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev