| Server IP : 217.160.0.64 / Your IP : 216.73.217.111 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67269618 ( 67269618) PHP Version : 8.4.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/self/root/kunden/proc/self/cwd/wp-content/plugins/loco-translate/src/fs/ |
Upload File : |
<?php
/**
*
*/
class Loco_fs_Link extends Loco_fs_File {
/**
* @var Loco_fs_File
*/
private ?Loco_fs_File $real = null;
/**
* {@inheritdoc}
*/
public function __construct( $path ){
parent::__construct($path);
$real = realpath( $this->getPath() );
if( is_string($real) ){
if( is_dir($real) ){
$this->real = new Loco_fs_Directory($real);
}
else {
$this->real = new Loco_fs_File($real);
}
}
}
/**
* @return Loco_fs_File|null
*/
public function resolve():?Loco_fs_File {
return $this->real;
}
/**
* {@inheritdoc}
*/
public function isDirectory():bool {
return $this->real instanceof Loco_fs_Directory;
}
}