Download the PHP package vincepare/dirscan without Composer
On this page you can find all versions of the php package vincepare/dirscan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vincepare/dirscan
More information about vincepare/dirscan
Files in vincepare/dirscan
Package dirscan
Short Description File system scanner
License Apache-2.0
Homepage https://github.com/vincepare/DirScan
Informations about the package dirscan
DirScan - file system inventory
DirScan is a file cataloging command line tool that lists all files inside a directory and its sub-directories to a text file, with file attributes like timestamps and permissions.
It can be used to compare all files in an entire partition at different times and see what changed between.
Example :
DirScan is bundled with a text reporter, but you can customize its output by creating your own reporting class, allowing to save data to, say, CSV, XML or an SQLite database.
Download
Download dirscan.phar, make it executable (chmod +x dirscan.phar) and rename it if you want. On Linux, store it to /usr/local/bin
to make it available everywhere :
Update
Requirement
Tested on PHP 5.3, 5.4, 5.5 & 5.6. There is also a legacy release that works on PHP 5.2 with some limitations.
Usage
Formats
Format tokens to customize output (--format
) :
Programmatic use
Although dirscan is released as a command line tool, you can also use its internal DirScan
class as a file system iterator. Dirscan is available as a composer package :
How to use
About windows
DirScan is designed to work on a Unix environment (Linux or Mac OS) but you can also use it on Windows. In this case, beware of NTFS junction points and symbolic links that are not handled properly by old php releases (see readlink & is_link). But you'd better use other tools like WhereIsIt.