protoschool.github.io
protoschool.github.io copied to clipboard
Validation Error: Mutable File System - Lesson 5 (View the contents of a directory)
If you submitted code for a lesson and received feedback indicating a validation error, you may have uncovered a bug in our lesson validation code. We've prepopulated the error type and the last code you submitted below as diagnostic clues. Feel free to add additional feedback about the lesson below before clicking "Submit new issue."
Before your code submission errored out, had you found anything about this lesson confusing?
Any other feedback you'd like to share about this lesson?
Any other feedback you'd like to share about ProtoSchool?
Thank you for submitting your feedback to help us diagnose the problem! ----------------------------------------------------------------------- Please do not edit the diagnostic information below this line.
Error type:
Missing validation case
The code that caused the error:
/* global ipfs, all */
const run = async (files) => {
// this code adds your uploaded files to IPFS
await Promise.all(files.map(f => ipfs.files.write('/' + f.name, f, { create: true })))
const rootDirectoryContents = files // your code goes here
return rootDirectoryContents
}
return run
thank you for the report @Webners2! will look into this
