Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
IoInterface.php
Go to the documentation of this file.
1 <?php
7 
12 interface IoInterface
13 {
20  public function open(array $args = []);
21 
27  public function close();
28 
37  public function mkdir($dir, $mode = 0777, $recursive = true);
38 
46  public function rmdir($dir, $recursive = false);
47 
53  public function pwd();
54 
62  public function cd($dir);
63 
71  public function read($filename, $dest = null);
72 
81  public function write($filename, $src, $mode = null);
82 
90  public function rm($filename);
91 
100  public function mv($src, $dest);
101 
109  public function chmod($filename, $mode);
110 
118  public function ls($grep = null);
119 
125  public function dirsep();
126 }
write($filename, $src, $mode=null)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15
mkdir($dir, $mode=0777, $recursive=true)