mehrdad-dadkhah/php-file-finder
Composer 安装命令:
composer require mehrdad-dadkhah/php-file-finder
包简介
simple package to search files and directories and return full path and related information
README 文档
README
simple package to find file or directory full path and related information in php
Installation
composer require mehrdad-dadkhah/php-file-finder
Usage
use MehrdadDadkhah\File\Finder; $finder = new Finder();
can change finder, default is find and can change it to locate
$finder->setFinder('locate');
find with filename and search all directories:
$finder->findFile('myFile.mp4', '/');
find all video(mp4) files in /home dir:
$finder->findFile('*.mp4', '/home');
find a file with it's related path:
$finder->findFile('related/path/to/files/myFile.mp4');
find files and only return file path without extra information:
$finder->findFile('myFile.mp4', '/', false);
find directory with name test:
$finder->findDirectoryPath('test', '/');
License
hls-video-generater is licensed under the GPLv3 License.
统计信息
- 总下载量: 624
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2018-01-07