module Find: sig end
It's pretty simple. You define the rules to see if a file matches, and run it on a directory, and get back a list of matching files.
It also needs lots of work. For example, it doesn't have any way to
stop a directory from being followed yet. There's many other
shortcomings for now. You've been warned.
typesize =
[ `Bytes of int | `Kilobytes of int | `Megabytes of int ]
typesize_test =
[ `EqualTo of size
| `LargerThan of size
| `SmallerThan of size ]
typetime_test =
[ `After of int32 | `At of int32 | `Before of int32 ]
typetest =
[ `Accessed of time_test
| `And of test list
| `Created of time_test
| `Eval of string -> Unix.stats -> bool
| `False
| `Group of int
| `IName of string
| `Modified of time_test
| `Name of string
| `Or of test list
| `Owner of int
| `Perms of Unix.file_perm
| `Regexp of string
| `Size of size_test
| `True
| `Type of Unix.file_kind ]
type
t
val make : test -> t
val find : t -> string -> string list