Skip to content

Move folder action #16337

Closed Answered by brandonkelly
robinbeatty asked this question in Ideas
Discussion options

You must be logged in to vote

Moving folders is potentially an expensive, long-running operation because each contained asset needs to be moved as well. To avoid running into memory/time constraints, assets are each moved from their own Ajax requests. So it wouldn’t be possible for us to contain all that into a single PHP method.

That said, you can take a look at AssetsController::actionMoveFolder() to see what happens when you initially choose to move a folder, as well as AssetsController::actionMoveAsset() to see how to move an individual asset.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants