A parallel, simplified version of find(1)
for use on high-latency,
highly-parallel file systems.
parfind -root=<directory>
will recursively list all files and directories in
<directory>
. The output order is undefined. For each file/directory a line
will be printed to stdout:
<type> <mtime> <size> <name>
where <type>
is the type (e.g. f
for regular files, d
for directories, l
for symbolic links, etc.), <mtime>
is the UNIX timestamp of the file/directory
mtime, <size>
is the size in bytes, <name>
is the quoted and escaped
absolute path. Fields are space separated and lines are terminated by a newline.
If the -print0
option is used fields and lines are terminated by a NUL
byte
and the <name>
field is not quoted or escaped: this is useful for passing the
output to command line tools that support this convention, e.g. xargs -0
:
<type><NUL><mtime><NUL><size><NUL><name><NUL>
Just run below in the project directory:
$ go build
- Fork (https://github.com/rakutentech/parfind/fork)
- Create a feature branch
- Add features and its tests as appropriate
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test
command and confirm that it passes - Run
gofmt -s
- Create new Pull Request
Carlo Alberto Ferraris (Rakuten, Inc.)