Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Missingno50

Filesystem API reports back one more filesystem than there really is

Question

So, here's the gist of what I'm doing. I want to read all of the filesystems, and have written this bit of code. (The computer.address comes into play in a moment.)

for a,n in component.list("filesystem", false) do
  pri(0,0,a)
  end
pri(0,0,computer.address())

Pri just happens to be what I named my print command, past outputting on the screen it has no bearing on my code.

My computer is simple enough, creative case that houses all tier 1 parts and no hard drive. And that's where the problem comes. So, of course it reports back the floppy disk it's reading from(145), and reports back the computer's address(cd9), but it also reports something before the floppy disk, 8a8cec5-3ebf-4b81-b78e-caf4a4c3f767. Its placement is always random too although that might just be how the filesystem API works rather than anything to do with it. And if I add a hard drive(hypothetically, 638), it properly reports 638 but still has 8a8cec5 in that list. And that's not even the computer address like I initially thought! It doesn't match any components really, but the computer address is cd9, which is definitely different from 8a8.

I'm very confused and this frustrates me since this program revolves around you being able to pick a filesystem to use. Does anyone know what is causing this?

Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.