b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / vendor / magento / framework / Filesystem / Directory /
Filename/home/dev2.destoffenstraat.com/vendor/magento/framework/Filesystem/Directory/WriteInterface.php
Size3.49 kb
Permissionrw-r--r--
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified07-Jan-2021 21:08
Last accessed23-Aug-2025 03:56
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Filesystem\Directory;

/**
* Interface \Magento\Framework\Filesystem\Directory\WriteInterface
* @api
* @since 100.0.2
*/
interface WriteInterface extends ReadInterface
{
/**
* Create directory if it does not exists
*
* @param string $path [optional]
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function create($path = null);

/**
* Delete given path
*
* @param string $path [optional]
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function delete($path = null);

/**
* Rename a file
*
* @param string $path
* @param string $newPath
* @param WriteInterface $targetDirectory [optional]
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function renameFile($path, $newPath, WriteInterface $targetDirectory = null);

/**
* Copy a file
*
* @param string $path
* @param string $destination
* @param WriteInterface $targetDirectory [optional]
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function copyFile($path, $destination, WriteInterface $targetDirectory = null);

/**
* Creates symlink on a file or directory and places it to destination
*
* @param string $path
* @param string $destination
* @param WriteInterface $targetDirectory [optional]
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function createSymlink($path, $destination, WriteInterface $targetDirectory = null);

/**
* Change permissions of given path
*
* @param string $path
* @param int $permissions
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function changePermissions($path, $permissions);

/**
* Change permissions of given path
*
* @param string $path
* @param int $dirPermissions
* @param int $filePermissions
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function changePermissionsRecursively($path, $dirPermissions, $filePermissions);

/**
* Sets access and modification time of file.
*
* @param string $path
* @param int $modificationTime [optional]
* @return bool
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function touch($path, $modificationTime = null);

/**
* Check if given path is writable
*
* @param string $path [optional]
* @return bool
*/
public function isWritable($path = null);

/**
* Open file in given mode
*
* @param string $path
* @param string $mode
* @return \Magento\Framework\Filesystem\File\WriteInterface
*/
public function openFile($path, $mode = 'w');

/**
* Open file in given path
*
* @param string $path
* @param string $content
* @param string $mode [optional]
* @return int The number of bytes that were written.
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function writeFile($path, $content, $mode = null);

/**
* Get driver
*
* @return \Magento\Framework\Filesystem\DriverInterface
*/
public function getDriver();
}