PHP code example of herrera-io / file-system-functions
1. Go to this page and download the library: Download herrera-io/file-system-functions 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/ */
herrera-io / file-system-functions example snippets
var_export(canonical_path('../../myDir')); // /var/lib/myDir
var_export(canonical_path('../../myDir')); // C:\\Projects\\myDir
var_export(is_absolute_path('../')); // false
var_export(is_absolute_path('C:\\Test\\Path')); // true
var_export(is_hidden_path('/path/to/.hidden')); // true
var_export(is_hidden_path('C:\\Path\\To\\Hidden.txt')); // true