rosell-dk/file-util
最新稳定版本:0.1.1
Composer 安装命令:
composer require rosell-dk/file-util
包简介
Functions for dealing with files and paths
README 文档
README
Just a bunch of handy methods for dealing with files and paths:
-
FileExists::fileExists($path):
A well-behaved version of file_exists that throws upon failure rather than emitting a warning -
FileExists::fileExistsTryHarder($path):
Also well-behaved. Tries FileExists::fileExists(). In case of failure, tries exec()-based implementation -
PathValidator::checkPath($path):
Check if path looks valid and doesn't contain suspecious patterns -
PathValidator::checkFilePathIsRegularFile($path):
Check if path points to a regular file (and doesnt match suspecious patterns)
统计信息
- 总下载量: 6.37M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04