#NEWLINE# def run( self , paths , current_file = False ) : #NEWLINE# #INDENT# if ( not self . is_enabled ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( paths is None ) and current_file ) : #NEWLINE# #INDENT# paths = [ self . window . active_view ( ) . file_name ( ) ] #NEWLINE# #UNINDENT# notshared = [ ] #NEWLINE# for path in paths : #NEWLINE# #INDENT# if utils . is_shared ( path ) : #NEWLINE# #INDENT# G . AGENT . upload ( path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# notshared . append ( path ) #NEWLINE# #UNINDENT# #UNINDENT# if notshared : #NEWLINE# #INDENT# limit = 5 #NEWLINE# sublime . error_message ( ( 'The following paths are not a child of\n\n%s\n\nand will not be shared for security reasons:\n\n%s%s.' % ( G . PROJECT_PATH , ',\n' . join ( notshared [ : limit ] ) , ( ( ( len ( notshared ) > limit ) and ',\n...' ) or '' ) ) ) )