#NEWLINE# def handle_noargs( self , * args , **options ) : #NEWLINE# #INDENT# self . set_options ( options ) #NEWLINE# self . _connection = Auth ( ) . _get_connection ( ) #NEWLINE# self . container = self . _connection . get_container ( self . container_name ) #NEWLINE# if self . wipe : #NEWLINE# #INDENT# self . wipe_container ( ) #NEWLINE# #UNINDENT# abspaths = self . match_local ( self . file_root , self . includes , self . excludes ) #NEWLINE# relpaths = [ ] #NEWLINE# for path in abspaths : #NEWLINE# #INDENT# filename = path . split ( self . file_root ) [ 1 ] #NEWLINE# if filename . startswith ( '/' ) : #NEWLINE# #INDENT# filename = filename [ 1 : ] #NEWLINE# #UNINDENT# relpaths . append ( filename ) #NEWLINE# #UNINDENT# if ( not relpaths ) : #NEWLINE# #INDENT# settings_root_prefix = ( 'MEDIA' if self . syncmedia else 'STATIC' ) #NEWLINE# raise CommandError ( 'The {0}_ROOT directory is empty or all files have been ignored.' . format ( settings_root_prefix ) ) #NEWLINE# #UNINDENT# for path in abspaths : #NEWLINE# #INDENT# if ( not os . path . isfile ( path ) ) : #NEWLINE# #INDENT# raise CommandError ( 'Unsupported filetype: {0}.' . format ( path ) ) #NEWLINE# #UNINDENT# #UNINDENT# cloud_objs = self . match_cloud ( self . includes , self . excludes ) #NEWLINE# remote_objects = { obj . name : datetime . datetime . strptime ( obj . last_modified , '%Y-%m-%dT%H:%M:%S.%f' ) for obj in self . container . get_objects ( ) } #NEWLINE# self . upload_files ( abspaths , relpaths , remote_objects ) #NEWLINE# self . delete_extra_files ( relpaths , cloud_objs ) #NEWLINE# if ( ( not self . quiet ) or ( self . verbosity > 1 ) ) : #NEWLINE# #INDENT# self . print_tally ( )