use of com.microsoft.azure.storage.file.CloudFile in project zeppelin by apache.
the class AzureNotebookRepo method save.
@Override
public void save(Note note, AuthenticationInfo subject) throws IOException {
try {
CloudFile noteFile = rootDir.getFileReference(buildNoteFileName(note));
noteFile.getParent().createIfNotExists();
noteFile.uploadText(note.toJson());
} catch (URISyntaxException | StorageException e) {
String msg = String.format("Error saving notebook %s to Azure storage", buildNoteFileName(note));
LOGGER.error(msg, e);
throw new IOException(msg, e);
}
}
Aggregations