def get_type(full_path):
status = {'<STR_LIT:type>': []}<EOL>if os.path.ismount(full_path):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>elif os.path.islink(full_path):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>if os.path.isfile(full_path):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT:file>']<EOL><DEDENT>elif os.path.isdir(full_path):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>if not status['<STR_LIT:type>']:<EOL><INDENT>if os.stat.S_ISSOCK(status['<STR_LIT>']):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>elif os.stat.S_ISCHR(status['<STR_LIT>']):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>elif os.stat.S_ISBLK(status['<STR_LIT>']):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>elif os.stat.S_ISFIFO(status['<STR_LIT>']):<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT><DEDENT>if not status['<STR_LIT:type>']:<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>elif status['<STR_LIT:type>'] and status['<STR_LIT:type>'][-<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>status['<STR_LIT:type>'] += ['<STR_LIT>']<EOL><DEDENT>return status['<STR_LIT:type>']<EOL>
Get the type (socket, file, dir, symlink, ...) for the provided path