|
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/ReadInterface.php |
Size | 2.31 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 17-Aug-2025 10:26 |
Last modified | 07-Jan-2021 21:08 |
Last accessed | 23-Aug-2025 03:56 |
Actions | edit | rename | delete | download (gzip) |
View | text | 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\ReadInterface
* @api
* @since 100.0.2
*/
interface ReadInterface
{
/**
* Get absolute path
*
* @param string $path [optional]
* @return string
*/
public function getAbsolutePath($path = null);
/**
* Get relative path
*
* @param string $path
* @return string
*/
public function getRelativePath($path = null);
/**
* Retrieve list of all entities in given path
*
* @param string $path [optional]
* @return array
*/
public function read($path = null);
/**
* Search all entries for given regex pattern
*
* @param string $pattern
* @param string $path [optional]
* @return array
*/
public function search($pattern, $path = null);
/**
* Check a file or directory exists
*
* @param string $path [optional]
* @return bool
*/
public function isExist($path = null);
/**
* Gathers the statistics of the given path
*
* @param string $path
* @return array
*/
public function stat($path);
/**
* Check permissions for reading file or directory
*
* @param string $path [optional]
* @return bool
*/
public function isReadable($path = null);
/**
* Check whether given path is file
*
* @param string $path
* @return bool
*/
public function isFile($path);
/**
* Check whether given path is directory
*
* @param string $path [optional]
* @return bool
*/
public function isDirectory($path = null);
/**
* Open file in read mode
*
* @param string $path
* @return \Magento\Framework\Filesystem\File\ReadInterface
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function openFile($path);
/**
* Retrieve file contents from given path
*
* @param string $path
* @param string|null $flag
* @param resource|null $context
* @return string
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function readFile($path, $flag = null, $context = null);
}
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Filesystem\Directory;
/**
* Interface \Magento\Framework\Filesystem\Directory\ReadInterface
* @api
* @since 100.0.2
*/
interface ReadInterface
{
/**
* Get absolute path
*
* @param string $path [optional]
* @return string
*/
public function getAbsolutePath($path = null);
/**
* Get relative path
*
* @param string $path
* @return string
*/
public function getRelativePath($path = null);
/**
* Retrieve list of all entities in given path
*
* @param string $path [optional]
* @return array
*/
public function read($path = null);
/**
* Search all entries for given regex pattern
*
* @param string $pattern
* @param string $path [optional]
* @return array
*/
public function search($pattern, $path = null);
/**
* Check a file or directory exists
*
* @param string $path [optional]
* @return bool
*/
public function isExist($path = null);
/**
* Gathers the statistics of the given path
*
* @param string $path
* @return array
*/
public function stat($path);
/**
* Check permissions for reading file or directory
*
* @param string $path [optional]
* @return bool
*/
public function isReadable($path = null);
/**
* Check whether given path is file
*
* @param string $path
* @return bool
*/
public function isFile($path);
/**
* Check whether given path is directory
*
* @param string $path [optional]
* @return bool
*/
public function isDirectory($path = null);
/**
* Open file in read mode
*
* @param string $path
* @return \Magento\Framework\Filesystem\File\ReadInterface
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function openFile($path);
/**
* Retrieve file contents from given path
*
* @param string $path
* @param string|null $flag
* @param resource|null $context
* @return string
* @throws \Magento\Framework\Exception\FileSystemException
*/
public function readFile($path, $flag = null, $context = null);
}