#NEWLINE# def ismount( path ) : #NEWLINE# #INDENT# 'Test whether a path is a mount point (defined as root of drive)' #NEWLINE# ( unc , rest ) = splitunc ( p ) #NEWLINE# if unc : #NEWLINE# #INDENT# return ( rest in ( '' , '/' , '\\' ) ) #NEWLINE# #UNINDENT# p = splitdrive ( path ) [ 1 ] #NEWLINE# return ( ( len ( p ) == 1 ) and ( p [ 0 ] in '/\\' ) )