Download the PHP package corneltek/fileutil without Composer
On this page you can find all versions of the php package corneltek/fileutil. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package fileutil
FileUtil Extension
Fast File Utility Extension (with Pure PHP Implementation Support)
FileUtil Extension provides an efficient way to operate file related operations.
Installation
Install the PHP extension:
Install the pure PHP implementation:
Synopsis
Usage
path[] futil_scanpath($dir)
The behavior is different from the built-in function scandir($dir)
,
futil_scanpath
concat the items with the base path, and it filters out "." and
".." paths.
path[] futil_scanpath_dir($dir)
As the same as futil_scanpath($dir)
, but futil_scanpath_dir
only returns directory entries.
long futil_lastmtime($filelist)
This returns the last modification time from a filelist array.
long futil_lastctime($filelist)
This returns the last creation time from a filelist array.
string futil_pathjoin($path1, $path2, $path3)
array futil_pathsplit($path)
futil_unlink_if_exists($path)
futil_rmdir_if_exists($path)
futil_mkdir_if_not_exists($path)
futil_rmtree($path)
Recursively delete files and directories through RecursiveDirectoryIterator.
futil_paths_prepend($paths, $prepend)
futil_paths_append($paths, $append)
futil_replace_extension($path, $newExtension)
futil_get_extension($path)
futil_filename_append_suffix($path, $suffix)
Hacking
- Fork this project.
- Clone the git repository.
-
Run commands under the repository:
pear channel-discover pear.corneltek.com pear channel-update -f corneltek pear install -f corneltek/Universal pear install -f corneltek/PHPUnit_TestMore pear install -f corneltek/PHPUnit_Framework_ExtensionTestCase pear install -f corneltek/ExtUnit phpize ./configure make
-
Run extunit to test extension functions:
extunit --phpunit
-
Run phpunit to test pure php functions:
phpunit
Author
Pedro [email protected]
License
See LICENSE file.