Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Another question about Server API / File API

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.)

  • copy
  • move
  • no-overwrite

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

 


Back to the top