def save_users(users, path=settings.LOGIN_FILE):
with open(path, "<STR_LIT:w>") as fh:<EOL><INDENT>for username, data in list(users.items()):<EOL><INDENT>pass_line = username + "<STR_LIT::>" + "<STR_LIT::>".join([<EOL>data["<STR_LIT>"],<EOL>data["<STR_LIT>"],<EOL>data["<STR_LIT>"],<EOL>data["<STR_LIT>"],<EOL>data["<STR_LIT>"],<EOL>data["<STR_LIT>"]<EOL>])<EOL>fh.write(pass_line + "<STR_LIT:\n>")<EOL><DEDENT><DEDENT>
Save dictionary with user data to passwd file (default
:attr:`ftp.settings.LOGIN_FILE`).

Args:
    users (dict): dictionary with user data. For details look at dict
                  returned from :func:`load_users`.
    path (str, default settings.LOGIN_FILE): path of the file, where the
         data will be stored (default :attr:`ftp.settings.LOGIN_FILE`).