Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: FileCopyrightText changed
Signed-off-by: yemkareems <[email protected]>
  • Loading branch information
yemkareems committed Jul 30, 2024
commit a851f27597528099e7ab9ba9a0c89e79145014c0
23 changes: 4 additions & 19 deletions apps/files/lib/Command/ListFiles.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
<?php
/**
* @copyright Copyright (c) 2024, Nextcloud GmbH
*
* @author Kareem <[email protected]>
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\Files\Command;

Expand Down Expand Up @@ -88,7 +73,7 @@ private function getNodeInfo(File|Folder $node): array {
"name" => $node->getName(),
"size" => $node->getSize() . " bytes",
"perm" => $node->getPermissions(),
"owner" => $node->getOwner()->getDisplayName(),
"owner" => $node->getOwner()?->getDisplayName(),
"created-at" => $node->getCreationTime(),
"type" => $node->getMimePart(),
];
Expand Down