You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DirScan is bundled with a text reporter, but you can customize its output by creating a custom reporting class, allowing to save data to, say, CSV, XML or an SQLite database.
13
+
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.
14
14
15
-
### Download ###
15
+
### Download
16
16
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 :
Tested on PHP 5.3, 5.4, 5.5 & 5.6. There is also a [legacy release](https://raw.githubusercontent.com/finalclap/DirScan/master/src/legacy/dirscan) that works on PHP 5.2 with some limitations.
24
+
### Requirement
25
+
Tested on PHP 5.3, 5.4, 5.5 & 5.6. There is also a [legacy release](https://raw.githubusercontent.com/vincepare/DirScan/master/src/legacy/dirscan) that works on PHP 5.2 with some limitations.
--htime Report user friendly date nearby unix timestamps
38
37
--same-device Explore only directories on the same device as the start directory
39
38
Useful on Linux, to ignore special mount points like /sys or /proc
39
+
--access, -a Report access time
40
+
--htime, -t Report user friendly date nearby unix timestamps
41
+
--perms, -p Report file permissions
42
+
--full Report all properties
43
+
--format=STRING Custom reporting format, call with empty string to print format help
44
+
```
45
+
46
+
#### Formats
47
+
Format tokens to customize output (`--format`) :
48
+
```
49
+
%u Unique path
50
+
%t Type
51
+
%s Size
52
+
%c ctime
53
+
%C Change time
54
+
%m mtime
55
+
%M Modify time
56
+
%a atime
57
+
%A Access time
58
+
%p Permissions
59
+
%o UID
60
+
%O Owner
61
+
%g GID
62
+
%G Group
63
+
%i Inode
64
+
%e Extended
40
65
```
41
66
42
-
### About windows ###
67
+
### About windows
43
68
44
69
DirScan is designed to work 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](http://php.net/manual/en/function.readlink.php) & [is_link](http://php.net/manual/en/function.is-link.php)). But you'd better use other tools like [WhereIsIt](http://www.whereisit-soft.com/).
0 commit comments