我想将本地文件夹上传到azure存储帐户的blob。 代码是:
CloudBlockBlob blob = container.getBlockBlobReference("Directory1/Directory2/Directory3/Directory4Directory5/temp.txt");
File source = new File(filePath);
blob.upload(new FileInputStream(source), source.length());
CloudBlobDirectory directoryOfTempFile = container.getDirectoryReference("Directory1/Directory2/Directory3/Directory4Directory5");
CloudBlockBlob blobToDelete = directoryOfTempFile.getBlockBlobReference("temp.txt");
blobToDelete.deleteIfExists();
如何删除文件Temp.txt?