Skip to content
New issue

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

add commands to copy/move files #38366

Merged
merged 1 commit into from Jul 12, 2023
Merged

add commands to copy/move files #38366

merged 1 commit into from Jul 12, 2023

Conversation

icewind1991
Copy link
Member

Follow up from #37971

  • occ files:copy <source> <target>
  • occ files:move <source> <target>

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label May 19, 2023
@icewind1991 icewind1991 added this to the Nextcloud 28 milestone May 19, 2023
@icewind1991 icewind1991 requested a review from a team May 19, 2023 12:41
@icewind1991 icewind1991 requested review from ArtificialOwl, Fenn-CS and come-nc and removed request for a team May 19, 2023 12:41
@szaimen szaimen removed their request for review May 19, 2023 13:47
}
}

if ($wouldRequireDelete && $targetNode->getInternalPath() === '') {

Check notice

Code scanning / Psalm

PossiblyNullReference Note

Cannot call method getInternalPath on possibly null value
return 1;
}

if ($wouldRequireDelete && !$targetNode->isDeletable()) {

Check notice

Code scanning / Psalm

PossiblyNullReference Note

Cannot call method isDeletable on possibly null value
@szaimen
Copy link
Contributor

szaimen commented Jun 12, 2023

conflicts

Signed-off-by: Robin Appelman <robin@icewind.nl>
@susnux susnux added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 12, 2023
@susnux susnux merged commit 8a10f30 into master Jul 12, 2023
41 checks passed
@susnux susnux deleted the file-command-copy-move branch July 12, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants