#NEWLINE# def create_manifest_channel( self , file_name ) : #NEWLINE# #INDENT# name = os . path . basename ( file_name ) #NEWLINE# self . temp_files . append ( file_name ) #NEWLINE# devname = ( '/dev/%s.%s' % ( len ( self . temp_files ) , name ) ) #NEWLINE# abs_path = os . path . abspath ( file_name ) #NEWLINE# if ( not os . path . exists ( abs_path ) ) : #NEWLINE# #INDENT# fd = open ( abs_path , 'wb' ) #NEWLINE# fd . close ( ) #NEWLINE# #UNINDENT# if os . access ( abs_path , os . W_OK ) : #NEWLINE# #INDENT# self . manifest_channels . append ( ( self . channel_random_rw_template % ( abs_path , devname ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . manifest_channels . append ( ( self . channel_random_ro_template % ( abs_path , devname ) ) ) #NEWLINE# #UNINDENT# return devname