BOX Sub folder details
I am using JAVA API.
1. Suppose I have folder structure as All-Files\RootFolder\SubFolderL1\SubfolderL2 \SubfolderL3 .I am connecting to the RootFolder
Is there is way to check if SubfolderL3 exists directly ??
2. Is there a way to create Subfolder3 with from RootFolder directly ??
Current Folder : All-Files\RootFolder
Required sub-folder Structure: All-Files\RootFolder\SubFolder1\Subfolder2 \Subfolder3
I am able to achieve above to using multiple iterations, I just want check if there is a simpler way to achieve using JAVA API
-
Hello,
The only way to check if a folder exists is to call getInfo() with the folder ID and see if it fails. Also, to create a folder, you would have to call createFolder() with a parent folder ID. There does not exist a method where you can do this by passing in folder paths. I hope I was able to answer your question.
サインインしてコメントを残してください。
コメント
1件のコメント