d082a63734
After seeing the uglyness that is removing directories in the codebase I decided to push down this to the OPAL by extending the opal/os_create_dirpath.(c|h) to contain some more functionality. In this process I renamed 'os_create_dirpath' to 'os_dirpath' since it is a bit more general now. Added a few functions to: - check if an directory is empty - check to see if the access permissions are set correctly - destroy the directory at the end of the dirpath - By using a caller callback function (a la Perl, I believe) for every file, the caller can have fine grained control over whether a specific file is deleted or not. This simplifies things a bit for orte_session_dir_(finalize|cleanup) as it should no longer contain any of this functionality, but uses these functions to do the work. From the external perspective nothing has changed, from the developer point of view we have some cleaner, more generic code. This commit was SVN r10640. |
||
---|---|---|
.. | ||
help-orte-runtime.txt | ||
Makefile.am | ||
orte_abort.c | ||
orte_finalize.c | ||
orte_init_stage1.c | ||
orte_init_stage2.c | ||
orte_init.c | ||
orte_monitor.c | ||
orte_params.c | ||
orte_restart.c | ||
orte_setup_hnp.c | ||
orte_setup_hnp.h | ||
orte_system_finalize.c | ||
orte_system_init.c | ||
orte_universe_exists.c | ||
orte_wait.c | ||
orte_wait.h | ||
runtime_internal.h | ||
runtime_types.h | ||
runtime.h |