@command('fileset', optional=['filename'])
def fileset_command(options, input_filename=None):
 with open_input_file(input_filename) as input_file:
  descriptor_content = input_file.read()
 dest_dir = os.path.expanduser(options.dest_dir)
 if ((not os.path.isdir(dest_dir)) and os.path.exists(dest_dir)):
  fatal_error(("Destination '%s' is not a directory" % dest_dir))
 file_set = protobuf.decode_message(descriptor.FileSet, descriptor_content)
 for file_descriptor in file_set.files:
  generate_file_descriptor(dest_dir, file_descriptor=file_descriptor, force_overwrite=options.force)

@ command ( 'fileset' , optional = [ 'filename' ] ) def fileset_command ( options , input_filename = None ) : with open_input_file ( input_filename ) as input_file : descriptor_content = input_file . read ( ) dest_dir = os . path . expanduser ( options . dest_dir ) if ( ( not os . path . isdir ( dest_dir ) ) and os . path . exists ( dest_dir ) ) : fatal_error ( ( "Destination '%s' is not a directory" % dest_dir ) ) file_set = protobuf . decode_message ( descriptor . FileSet , descriptor_content ) for file_descriptor in file_set . files : generate_file_descriptor ( dest_dir , file_descriptor = file_descriptor , force_overwrite = options . force )
generate source directory structure from fileset .