We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After trying to make it work for hours, I have finally been able to move an entire folder (with subfolders and files).
It is a method that shall be added to src/Sharepoint/MoveCopyUtil.php:
function moveFolder($context, $srcUrl, $destUrl, $options){ $util = new MoveCopyUtil($context); $qry = new InvokePostMethodQuery($util, "MoveFolderByPath", null, null, array("srcPath" => new ResourcePath($srcUrl), "destPath" => new ResourcePath($destUrl), "options" => $options)); $qry->IsStatic = true; $context->addQuery($qry); return $util; }
It needs a new class extending SPResourcePath to make it work, as using SPResuorcePath sends a metadata SP.SPResourcePath instead of SP.ResourcePath:
use Office365\SharePoint\SPResourcePath; class ResourcePath extends SPResourcePath{}
Please consider including it.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After trying to make it work for hours, I have finally been able to move an entire folder (with subfolders and files).
It is a method that shall be added to src/Sharepoint/MoveCopyUtil.php:
It needs a new class extending SPResourcePath to make it work, as using SPResuorcePath sends a metadata SP.SPResourcePath instead of SP.ResourcePath:
Please consider including it.
The text was updated successfully, but these errors were encountered: