Answer the question
In order to leave comments, you need to log in
How to download automatically all folders with nodejs in azure?
You need to test one function, for this you need this functionality. Thanks for the help.
There is a piece of code that shows all folders in the C: ILJATEST directory
var dirPath = path.join("C:\\", 'ILJATEST');
fs.readdir(dirPath, function (err, files) {
if (err) {
return console.log('Unable to scan dir ' + err);
}
files.forEach(function (file) {
console.log(file);
});
});
document.getElementById('upload-button').addEventListener('click', () => {
const file = document.getElementById('fileinput').files[0];
blobService.createBlockBlobFromBrowserFile('mycontainer',
file.name,
file,
(error, result) => {
if (error) {
// Handle blob error
} else {
console.log('Upload is successful');
}
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question