def get_hashed_filename_path_and_set_filename(instance, filename):
    new_filename = instance.sha256
    dir_path = '{0}{1}'.format(instance.UPLOAD_DIR, generate_hash_directories(new_filename))
    return os.path.join(dir_path, new_filename)
def get_hashed_filename_path_and_set_filename(instance, filename):
    new_filename = instance.sha256
    dir_path = '{0}{1}'.format(instance.UPLOAD_DIR, generate_hash_directories(new_filename))
    return os.path.join(dir_path, new_filename)