Jarves\Filesystem\Filesystem::getFile PHP 메소드

getFile() 공개 메소드

The result contains following information: [path(relative), name, type(dir|file), ctime(unixtimestamp), mtime(unixtimestamp), size(bytes)] array( path => path to this file/folder for usage in the administration and modules. Not the full http path. No trailing slash! name => basename(path) ctime => as unix timestamps mtime => as unix timestamps size => filesize in bytes (not for folders) type => 'dir' or 'file' )
public getFile ( string $path ) : Jarves\File\FileInfoInterface
$path string
리턴 Jarves\File\FileInfoInterface
    public function getFile($path)
    {
        $fs = $this->getAdapter($path);
        $path = $this->normalizePath($path);
        return $fs->getFile($path);
    }

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  *
  * @return FileInfoInterface|FileInfoInterface[]|File
  */
 public function getFile($path)
 {
     return $this->wrap(parent::getFile($path));
 }
All Usage Examples Of Jarves\Filesystem\Filesystem::getFile