#NEWLINE# def run( self , dir_to_share = None , paths = None , current_file = False , api_args = None ) : #NEWLINE# #INDENT# if paths : #NEWLINE# #INDENT# if ( len ( paths ) != 1 ) : #NEWLINE# #INDENT# return sublime . error_message ( 'Only one folder at a time, please. :(' ) #NEWLINE# #UNINDENT# return SublimeUI . share_dir ( folders . window , paths [ 0 ] , api_args ) #NEWLINE# #UNINDENT# if ( dir_to_share is None ) : #NEWLINE# #INDENT# folders = self . window . folders ( ) #NEWLINE# if folders : #NEWLINE# #INDENT# dir_to_share = folders [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dir_to_share = os . path . expanduser ( os . path . join ( '~' , 'share_me' ) ) #NEWLINE# #UNINDENT# #UNINDENT# SublimeUI . prompt_share_dir ( self . window , dir_to_share , api_args )