def recursive_chmod(path, mode=<NUM_LIT>):
passwd_reader.set_permissions(path, mode=mode)<EOL>if os.path.isfile(path):<EOL><INDENT>return<EOL><DEDENT>for root, dirs, files in os.walk(path):<EOL><INDENT>for fn in files + dirs:<EOL><INDENT>passwd_reader.set_permissions(os.path.join(root, fn), mode=mode)<EOL><DEDENT><DEDENT>
Recursively change ``mode`` for given ``path``. Same as ``chmod -R mode``.

Args:
    path (str): Path of the directory/file.
    mode (octal int, default 0755): New mode of the file.

Warning:
    Don't forget to add ``0`` at the beginning of the numbers of `mode`, or
    `Unspeakable hOrRoRs` will be awaken from their unholy sleep outside of
    the reality and they WILL eat your soul (and your files).