Differential D9986 Diff 24115 src/applications/files/management/PhabricatorFilesManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/management/PhabricatorFilesManagementWorkflow.php
| Show All 12 Lines | if ($args->getArg('all')) { | ||||
| } | } | ||||
| return new LiskMigrationIterator(new PhabricatorFile()); | return new LiskMigrationIterator(new PhabricatorFile()); | ||||
| } | } | ||||
| if ($names) { | if ($names) { | ||||
| $query = id(new PhabricatorObjectQuery()) | $query = id(new PhabricatorObjectQuery()) | ||||
| ->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
| ->withNames($names) | ->withNames($names) | ||||
| ->withTypes(array(PhabricatorFilePHIDTypeFile::TYPECONST)); | ->withTypes(array(PhabricatorFileFilePHIDType::TYPECONST)); | ||||
| $query->execute(); | $query->execute(); | ||||
| $files = $query->getNamedResults(); | $files = $query->getNamedResults(); | ||||
| foreach ($names as $name) { | foreach ($names as $name) { | ||||
| if (empty($files[$name])) { | if (empty($files[$name])) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| "No file '{$name}' exists!"); | "No file '{$name}' exists!"); | ||||
| Show All 11 Lines | |||||