Skip to content

Conversation

@icewind1991
Copy link
Member

Also move the existing copyFromCache code around and expose it trough the public interface.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Mar 8, 2021
@icewind1991 icewind1991 added this to the Nextcloud 22 milestone Mar 8, 2021
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't test but the code makes sense!

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks fine, see comments if applicable

$folderContent = $sourceCache->getFolderContentsById($sourceEntry->getId());
foreach ($folderContent as $subEntry) {
$subTargetPath = $targetPath . '/' . $subEntry->getName();
$this->copyFromCache($sourceCache, $subEntry, $subTargetPath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we're not afraid of very deep folder structures and stack overflows ?

Edit: just saw it's old copied code, but something to keep in mind as tech debt?

@icewind1991 icewind1991 force-pushed the object-store-copy-cache-id branch from ea09768 to d7748e2 Compare March 12, 2021 16:23
@PVince81
Copy link
Member

build restarted...

@PVince81 PVince81 added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 15, 2021
@icewind1991 icewind1991 merged commit f1e2fb4 into master Mar 16, 2021
@icewind1991 icewind1991 deleted the object-store-copy-cache-id branch March 16, 2021 16:11
@icewind1991
Copy link
Member Author

/backport to stable21

@icewind1991
Copy link
Member Author

/backport to stable20

@icewind1991
Copy link
Member Author

/backport to stable19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants