Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistDownloadWorkflow.php
Context not available. | |||||
} | } | ||||
$file = reset($argv); | $file = reset($argv); | ||||
if (!preg_match('/^F?\d+$/', $file)) { | if (!@preg_match('/^F?\d+$/', $file)) { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht('Specify file by ID, e.g. %s.', 'F123')); | pht('Specify file by ID, e.g. %s.', 'F123')); | ||||
} | } | ||||
Context not available. | |||||
$display_path = Filesystem::readablePath($path); | $display_path = Filesystem::readablePath($path); | ||||
$display_name = $file_ref->getName(); | $display_name = $file_ref->getName(); | ||||
if (!strlen($display_name)) { | if (!@strlen($display_name)) { | ||||
$display_name = $file_ref->getMonogram(); | $display_name = $file_ref->getMonogram(); | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
if ($is_stdout) { | if ($is_stdout) { | ||||
$file_bytes = strlen($data); | $file_bytes = @strlen($data); | ||||
} else { | } else { | ||||
// TODO: This has various potential problems with clearstatcache() and | // TODO: This has various potential problems with clearstatcache() and | ||||
// 32-bit systems, but just ignore them for now. | // 32-bit systems, but just ignore them for now. | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0