protoschool.github.io icon indicating copy to clipboard operation
protoschool.github.io copied to clipboard

Validation Error: Mutable File System - Lesson 5 (View the contents of a directory)

Open Webners2 opened this issue 3 years ago • 2 comments

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

Webners2 avatar Sep 11 '21 08:09 Webners2

thank you for the report @Webners2! will look into this

zebateira avatar Sep 14 '21 14:09 zebateira

Screen Shot 2022-08-25 at 11 06 40 PM I had this issue on Lesson 5 as well although I had an incorrect string in there.

noryev avatar Aug 26 '22 04:08 noryev