herrera-io/file-system-functions
最新稳定版本:2.0.0
Composer 安装命令:
composer require herrera-io/file-system-functions
包简介
A collection of file system related functions.
关键字:
README 文档
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
统计信息
- 总下载量: 1.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-20