: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @param string $path file path
* @param string $mode open mode
* @author Dmitry (dio) Levashov
abstract protected function _fopen($path, $mode = "rb");
* @param resource $fp file pointer
* @param string $path file path
* @author Dmitry (dio) Levashov
abstract protected function _fclose($fp, $path = '');
/******************** file/dir manipulations *************************/
* Create dir and return created dir path or false on failed
* @param string $path parent dir path
* @param string $name new directory name
* @author Dmitry (dio) Levashov
abstract protected function _mkdir($path, $name);
* Create file and return it's path or false on failed
* @param string $path parent dir path
* @param string $name new file name
* @author Dmitry (dio) Levashov
abstract protected function _mkfile($path, $name);
* @param string $source file to link to
* @param string $targetDir folder to create link in
* @param string $name symlink name
* @author Dmitry (dio) Levashov
abstract protected function _symlink($source, $targetDir, $name);
* Copy file into another file (only inside one volume)
* @param string $source source file path
* @param string $name file name
* @internal param string $target target dir path
* @author Dmitry (dio) Levashov
abstract protected function _copy($source, $targetDir, $name);
* Move file into another parent dir.
* Return new file path or false.
* @param string $source source file path
* @param string $name file name
* @internal param string $target target dir path
* @author Dmitry (dio) Levashov
abstract protected function _move($source, $targetDir, $name);
* @param string $path file path
* @author Dmitry (dio) Levashov
abstract protected function _unlink($path);
* @param string $path dir path
* @author Dmitry (dio) Levashov
abstract protected function _rmdir($path);
* Create new file and write into it from file pointer.
* Return new file path or false on error.
* @param resource $fp file pointer
* @param string $dir target dir path
* @param string $name file name
* @param array $stat file stat (required by some virtual fs)
* @author Dmitry (dio) Levashov
abstract protected function _save($fp, $dir, $name, $stat);
* @param string $path file path
* @author Dmitry (dio) Levashov
abstract protected function _getContents($path);
* Write a string to a file
* @param string $path file path
* @param string $content new file content
* @author Dmitry (dio) Levashov
abstract protected function _filePutContents($path, $content);
* Extract files from archive
* @param string $path file path
* @param array $arc archiver options
* @author Dmitry (dio) Levashov,
* @author Alexey Sukhotin
abstract protected function _extract($path, $arc);
* Create archive and return its path
* @param string $dir target dir
* @param array $files files names list
* @param string $name archive name
* @param array $arc archiver options
* @author Dmitry (dio) Levashov,
* @author Alexey Sukhotin
abstract protected function _archive($dir, $files, $name, $arc);
* Detect available archivers
* @author Dmitry (dio) Levashov,
* @author Alexey Sukhotin
abstract protected function _checkArchivers();
* Change file mode (chmod)
* @param string $path file path
* @param string $mode octal string such as '0755'
abstract protected function _chmod($path, $mode);