Merge files and directories into one API

[ ENHANCEMENT ]  Process (in parallel) files and directories using
                 the same function (API)
[ ENHANCEMENT ]  Simplify and cleanup __operation_message()