%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/loco-translate/src/fs/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/loco-translate/src/fs/Link.php

<?php
/**
 * 
 */
class Loco_fs_Link extends Loco_fs_File {

    /**
     * @var Loco_fs_File
     */
    private $real;

    /**
     * {@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(){
        return $this->real;
    }


    /**
     * {@inheritdoc}
     */
    public function isDirectory(){
        return $this->real instanceof Loco_fs_Directory;
    }
    
}

Zerion Mini Shell 1.0