PHP code example of gidato / filesystem

1. Go to this page and download the library: Download gidato/filesystem library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gidato / filesystem example snippets



public function chdir(string $directory) : bool;
public function chmod(string $filename , int $mode) : bool;
public function copy(string $source , string $dest) : bool;
public function file_exists(string $filename) : bool;
public function file_get_contents(string $filename); // string or false
public function file_put_contents(string $filename, $data, int $flags = 0 ); // int or false
public function file(string $filename, int $flags = 0 ); // array or false
public function fileperms(string $filename) : ?int;
public function getcwd() : string;
public function glob(string $pattern, int $flags = 0); // array or false
public function is_dir(string $filename) : bool;
public function is_file(string $filename) : bool;
public function is_link(string $filename) : bool;
public function is_readable(string $filename) : bool;
public function is_writable(string $filename) : bool;
public function mkdir(string $pathname, int $mode = 0777, bool $recursive = FALSE) : bool;
public function readlink(string $path); // string or false
public function rmdir(string $directory) : bool;
public function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING); // array or false
public function symlink(string $target, string $link) : bool;
public function touch(string $filename) : bool;
public function umask(?int $mask) : int;
public function unlink(string $filename) : bool;