Added user.add_file, user.add_directory functions