本文介绍了使用nodejs在Blob中将文件夹创建到容器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

几天后,我尝试在nodejs中编写与blob的连接,在这一刻我可以创建一个容器,但是进入那个容器我想要创建一个文件夹。我知道使用microsoft azure存储资源管理器我可以,但我想用Nodejs创建文件夹
。 

For a few days, I try to programming in nodejs the connection with blob, in this moment I can create a container, but into that container I want to create a folder. I know that with microsoft azure storage explorer I can, but I want to create the folders with Nodejs. 

问候。

Juan Palma

Juan Palma

推荐答案

你可以上传,下载和列出blob使用node.js sdk v2如。此外,您可能需要参考以下项目,该项目为您提供和浏览器兼容   它易于使用和管理Microsoft Azure存储
服务。我建议你在这个参数 "https://tutorialedge.net/javascript/nodejs/creating-deleting-directories-with-nodejs/">
fs.mkdir()用于在容器内创建文件夹或目录。希望这对你有帮助!

You can do upload, download and list blobs using node.js sdk v2 as described here and here. Also, you may have to refer the following project which provides you a Node.js package and a browser Compatible JavaScript Client Library that makes it easy to consume and manage Microsoft Azure Storage Services. I would recommend you to refer the node.js official article here on this parameter fs.mkdir() for creating the folder or directory inside the container. Hope this helps you!


这篇关于使用nodejs在Blob中将文件夹创建到容器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 01:14