#NEWLINE# def is_versioned( target ) : #NEWLINE# #INDENT# 'Check if file/folder is versioned.' #NEWLINE# assert exists ( target ) , ( '%s does not exist!' % target ) #NEWLINE# versioned = False #NEWLINE# try : #NEWLINE# #INDENT# entries = status ( target , depth = 'empty' ) #NEWLINE# if ( len ( versioned [ 'unversioned' ] ) == 0 ) : #NEWLINE# #INDENT# versioned = True #NEWLINE# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return versioned