MPI-FTW is a software for MPI-based directory tree traversal. It allows users to easily traverse large directories and manage data using MPI technology.
This program is also equipped with a special feature that allows users to run specific commands on every directory that is found. To initiate this, users can simply run the "mpi-ftw" command with its designated path and additional arguments.
For example, users can run the following command:
mpirun [mpi arguments] mpi-ftw --path=path [--cmdfile=filename] [--verbose]
In this command, "path" refers to the root directory where the program should start its directory tree traversal. Optional arguments such as "--verbose" can also be used to provide users with more information on traversal progress.
Users can also specify a file containing the commands to execute on directories using the "--cmdfile" argument. The file format for the commands is specified below:
# comment
all "command" or process_range "command1" and/or processes "command2"
A "#" character at the start of a line indicates a comment. Commands can be specified on a process-by-process basis, and processes 0 and 1 are reserved for management and collection purposes only.
Users can use the "all" option to specify all processes except for process 0 and 1. Alternatively, they can also use "process_range" to specify a range of processes to run a command on, or "processes" to specify a comma-delimited list of processes. In addition, ranges and comma-delimited lists can be included on the same line.
Example usage could be:
2-5,10-12,15 "echo directory = %D"
18,20,22,23-26 "ls -al"
all "ls %D"
Users can also use special conversion variables in their commands, which are:
%r - Rank of process
%R - Relative path designation
%P - Full parent directory path
%D - Full current directory path
%A - Last directory in path (final /dirname in current directory)
Overall, MPI-FTW is a valuable tool for any software developer who needs to work with directory trees using MPI. Its user-friendly design and powerful features make it an excellent choice for anyone looking for efficient and reliable directory traversing capabilities.
Version 1.3: N/A