Files
2026-04-28 15:13:50 +02:00

15 lines
536 B
PHP

<?php
namespace Code_Snippets;
interface File_System_Interface {
public function put_contents( string $path, string $contents, $chmod );
public function exists( string $path ): bool;
public function delete( $file, $recursive = false, $type = false ): bool;
public function is_dir( string $path ): bool;
public function mkdir( string $path, $chmod );
public function rmdir( string $path, bool $recursive = false ): bool;
public function chmod( string $path, $chmod ): bool;
public function is_writable( string $path ): bool;
}