我有一个代码来创建一个文件夹但是没有想到在文件夹中创建一个子文件夹。请告知!
private void createFolderInDrive() throws IOException {
File fileMetadata = new File();
fileMetadata.setName("Test1 Folder");
fileMetadata.setMimeType("application/vnd.google-apps.folder");
File file = mService.files().create(fileMetadata)
.setFields("id")
.execute();
System.out.println("Folder ID: " + file.getId());
Log.e(this.toString(),"Folder Created with ID:"+ file.getId());
createSubFolderInDrive(file.getId());
Toast.makeText(getApplicationContext(),
"Folder created:"+file.getId() , Toast.LENGTH_SHORT).show();
}