Files
2026-07-01 16:44:17 +03:00

43 lines
883 B
PHP

<?php namespace ZN\Remote;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
interface FTPInterface
{
/**
* Change Folder
*
* @param string $path
*
* @return bool
*/
public function changeFolder(string $path) : bool;
/**
* Get Files
*
* @param string $path
* @param string $extension = NULL
*
* @return array
*/
public function files(string $path, ?string $extension = NULL) : array;
/**
* Get File Size
*
* @param string $path
* @param string $type = 'b' - options[b|kb|mb|gb]
*
* @return float
*/
public function fileSize(string $path, string $type = 'b', int $decimal = 2) : Float;
}