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:
parent
d37e36a1ce
commit
5a0630aa89
@ -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);
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user