herrera-io / file-system-functions
This package is abandoned and no longer maintained.
No replacement package was suggested.
A collection of file system related functions.
2.0.0
2013-07-20 16:20 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2021-12-07 01:34:19 UTC
README
I am deprecating this in favor of phine/lib-path.
A collection of file system related functions.
Summary
The library contains a collection of simple file system related functions:
canonical_path()
- Returns the canonical file path.is_absolute_path()
- Check for an absolute path.is_hidden_path()
- Checks for a hidden path.
Installation
Add it to your list of Composer dependencies:
$ composer require herrera-io/file-system-functions=1.*
Usage
<?php 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