File function ( String arg0 ) { File loc0 = new File ( ) ; loc0 . setTitle ( "srini_string" + UPLOAD_FILE . getName ( ) ) ; Drive . Files . Update loc1 = drive . files ( ) . loc1 ( arg0 , loc0 ) ; return loc1 . execute ( ) ; }
updates the name of the uploaded file to have a `` drivetest - '' prefix . concode_field_sep HttpTransport httpTransport concode_elem_sep String APPLICATION_NAME concode_elem_sep JsonFactory JSON_FACTORY concode_elem_sep String DIR_FOR_DOWNLOADS concode_elem_sep FileDataStoreFactory dataStoreFactory concode_elem_sep Drive drive concode_elem_sep java.io.File UPLOAD_FILE concode_elem_sep String UPLOAD_FILE_PATH concode_elem_sep java.io.File DATA_STORE_DIR concode_field_sep void downloadFile concode_elem_sep File uploadFile concode_elem_sep void main concode_elem_sep Credential authorize