def check_target(target_path):
if not path.exists(target_path):<EOL><INDENT>return<EOL><DEDENT>with scandir(target_path) as d:<EOL><INDENT>for entry in d:<EOL><INDENT>if not entry.name.startswith('<STR_LIT:.>'):<EOL><INDENT>fail(f'<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>
Checks that the target path is not empty