1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-139: change request with no subject merged in GitBook

This commit is contained in:
Veronica Manuel 2023-05-17 14:50:18 +00:00 committed by gitbook-bot
parent d37e36a1ce
commit 5a0630aa89
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -48,3 +48,28 @@ with open(input_filename, 'r') as file:
```
### Javascript
```
const fs = require("fs");
var input_folder = "/data/inputs";
var output_folder = "/data/outputs";
async function processfolder(Path) {
var files = fs.readdirSync(Path);
for (var i =0; i < files.length; i++) {
var file = files[i];
var fullpath = Path + "/" + file;
if (fs.statSync(fullpath).isDirectory()) {
await processfolder(fullpath);
} else {
<YOUR CODE GOES HERE>
}
}
}
<YOUR CODE GOES HERE>
processfolder(input_folder);
```