PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.3.2
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.3.2
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / rosell-dk / file-util / README.md

README.md in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.3.2, at vendor/rosell-dk/file-util/README.md

23 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 # File Util
2
3 [](https://github.com/rosell-dk/file-util/actions/workflows/php.yml![Build Status](https://github.com/rosell-dk/file-util/workflows/build/badge.svg)](https://github.com/rosell-dk/file-util/actions/workflows/php.yml](https://github.com/rosell-dk/file-util/actions/workflows/php.yml)
4 [](https://github.com/rosell-dk/file-util/blob/master/LICENSE![Software License](https://img.shields.io/badge/license-MIT-418677.svg)](https://github.com/rosell-dk/file-util/blob/master/LICENSE](https://github.com/rosell-dk/file-util/blob/master/LICENSE)
5 [](http://little-b.it/file-util/code-coverage/coverage/index.html![Coverage](https://img.shields.io/endpoint?url=https://little-b.it/file-util/code-coverage/coverage-badge.json)](http://little-b.it/file-util/code-coverage/coverage/index.html](http://little-b.it/file-util/code-coverage/coverage/index.html)
6 [](https://packagist.org/packages/rosell-dk/file-util![Latest Stable Version](https://img.shields.io/packagist/v/rosell-dk/file-util.svg)](https://packagist.org/packages/rosell-dk/file-util](https://packagist.org/packages/rosell-dk/file-util)
7 [](https://php.net![Minimum PHP Version](https://img.shields.io/packagist/php-v/rosell-dk/file-util)](https://php.net](https://php.net)
8
9 Just a bunch of handy methods for dealing with files and paths:
10
11
12 - *FileExists::fileExists($path)*:\
13 A well-behaved version of *file_exists* that throws upon failure rather than emitting a warning
14
15 - *FileExists::fileExistsTryHarder($path)*:\
16 Also well-behaved. Tries FileExists::fileExists(). In case of failure, tries exec()-based implementation
17
18 - *PathValidator::checkPath($path)*:\
19 Check if path looks valid and doesn't contain suspecious patterns
20
21 - *PathValidator::checkFilePathIsRegularFile($path)*:\
22 Check if path points to a regular file (and doesnt match suspecious patterns)
23