![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/metras.v32.1/vendor/league/flysystem/src/Adapter/ |
<?php namespace League\Flysystem\Adapter; class Ftpd extends Ftp { /** * @inheritdoc */ public function getMetadata($path) { if ($path === '') { return ['type' => 'dir', 'path' => '']; } if ( ! ($object = ftp_raw($this->getConnection(), 'STAT ' . $path)) || count($object) < 3) { return false; } if (substr($object[1], 0, 5) === "ftpd:") { return false; } return $this->normalizeObject($object[1], ''); } /** * @inheritdoc */ protected function listDirectoryContents($directory, $recursive = true) { $listing = ftp_rawlist($this->getConnection(), $directory, $recursive); if ($listing === false || ( ! empty($listing) && substr($listing[0], 0, 5) === "ftpd:")) { return []; } return $this->normalizeListing($listing, $directory); } }