HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/iranga.kauko.lt/wp-content/plugins/loco-translate/src/fs/Directory.php
<?php
/**
 * 
 */
class Loco_fs_Directory extends Loco_fs_File {
    
    /**
     * Recursive flag for internal use
     * @var bool
     */
    private $r = false;


    /**
     * {@inheritDoc}
     */
    public function isDirectory(){
        return true;
    }


    /**
     * Set recursive flag for use when traversing directory trees
     * @param bool $bool
     * @return Loco_fs_Directory
     */
    public function setRecursive( $bool ){
        $this->r = (bool) $bool;
        return $this;
    }


    /**
     * @return bool
     */
    public function isRecursive(){
        return $this->r;
    }


    /**
     * Create this directory for real.
     * 
     * @throws Loco_error_WriteException
     * @return Loco_fs_Directory
     */
     public function mkdir(){
         $this->getWriteContext()->mkdir();
         return $this;
     }

}