MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1536/lidiapaul.com.au/wp-content/plugins/loco-translate/src/fs/
File Upload :
Current < : /hermes/bosweb/b1536/lidiapaul.com.au/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;


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


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


    /**
     * @return bool
     */
    public function isRecursive(){
        if( func_num_args() ){
            throw new InvalidArgumentException('Did you mean to use setRecursive?');
        }
        return $this->r;
    }



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


}