/var/www/html_it/wp-content/plugins/loco-translate/src/fs/Directory.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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 setRecursivebool $bool ):self {
        
$this->$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;
     }

}