def is_hidden(path):
full_path = os.path.abspath(path)<EOL>name = os.path.basename(full_path)<EOL>def no(path):<EOL><INDENT>return False<EOL><DEDENT>platform_hidden = globals().get('<STR_LIT>' + platform.system(), no)<EOL>return name.startswith('<STR_LIT:.>') or platform_hidden(full_path)<EOL>
Check whether a file is presumed hidden, either because
the pathname starts with dot or because the platform
indicates such.