You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Neza Guillaine <gn...@gmail.com> on 2016/07/11 12:52:57 UTC

Create folder with cmis

Dear Florian,

I hope this email finds youw ell. I would like to start by thanking you for
all your help so far and suppport. I am now able to read from one repo and
write my documents porperties into another repo.

However, I am being challenged with one last request, I also want to
recreate their exact folders as they were at the source. and I can get the
path of a document.

Is it possible to create a folder and it subfolders using the document path?

For instance If I have my folder structure where C is a subfolder of B and
B is a subfolder of A. their path representation in cmis is: A/B/C

Is it possible to create a folder A and it child B and C?
Any help about this will be highly appreciated. I am at 90% completion of
my project and I really wish to finish this so that I can share what I did
with the rest of the community which might need help as I do now.

Regards,
Nea

Re: Create folder with cmis

Posted by Neza Guillaine <gn...@gmail.com>.
If that way is not possible,
Can you advise me how I can recreate a folder tree which has child folders ?
Any advise can be appreciated.

Regards.
Neza

On Mon, Jul 11, 2016 at 12:52 PM, Neza Guillaine <gn...@gmail.com> wrote:

> Dear Florian,
>
> I hope this email finds youw ell. I would like to start by thanking you
> for all your help so far and suppport. I am now able to read from one repo
> and write my documents porperties into another repo.
>
> However, I am being challenged with one last request, I also want to
> recreate their exact folders as they were at the source. and I can get the
> path of a document.
>
> Is it possible to create a folder and it subfolders using the document
> path?
>
> For instance If I have my folder structure where C is a subfolder of B and
> B is a subfolder of A. their path representation in cmis is: A/B/C
>
> Is it possible to create a folder A and it child B and C?
> Any help about this will be highly appreciated. I am at 90% completion of
> my project and I really wish to finish this so that I can share what I did
> with the rest of the community which might need help as I do now.
>
> Regards,
> Nea
>

Re: Create folder with cmis

Posted by Jeff Potts <je...@gmail.com>.
Neza,

A folder can contain any number of folders. You don't need anything in CMIS
to help you create a nested folder structure. If you know the structure you
need to create, just "walk" the folder structure and for each item in your
folder structure, check CMIS to see if that folder exists. If it doesn't,
create the folder, then go to the next item in the path. Recursion can be
used to do this succinctly but obviously that's up to you.

Jeff


On Mon, Jul 11, 2016 at 7:52 AM, Neza Guillaine <gn...@gmail.com> wrote:

> Dear Florian,
>
> I hope this email finds youw ell. I would like to start by thanking you for
> all your help so far and suppport. I am now able to read from one repo and
> write my documents porperties into another repo.
>
> However, I am being challenged with one last request, I also want to
> recreate their exact folders as they were at the source. and I can get the
> path of a document.
>
> Is it possible to create a folder and it subfolders using the document
> path?
>
> For instance If I have my folder structure where C is a subfolder of B and
> B is a subfolder of A. their path representation in cmis is: A/B/C
>
> Is it possible to create a folder A and it child B and C?
> Any help about this will be highly appreciated. I am at 90% completion of
> my project and I really wish to finish this so that I can share what I did
> with the rest of the community which might need help as I do now.
>
> Regards,
> Nea
>