HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/pewnabryka.pl/public_html/wp-content/plugins/loco-translate/src/fs/Directory.php
<?php
/**
 * 
 */
class Loco_fs_Directory extends Loco_fs_File {
    
    /**
     * Recursive flag for internal use
     */
    private bool $r = false;


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


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


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


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

}