#NEWLINE# def exists( device = '' ) : #NEWLINE# #INDENT# "\n    Check to see if the partition exists\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' partition.exists /dev/sdb1\n    " #NEWLINE# if os . path . exists ( device ) : #NEWLINE# #INDENT# dev = os . stat ( device ) . st_mode #NEWLINE# if stat . S_ISBLK ( dev ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False